LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2004, 08:19 PM   #1
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Rep: Reputation: 15
J2SDK install problem on Mandrake 9.1


hi-

Quite new to linux, having left the dark side recently.

My problem:

trying to install the file "j2sdk-1_4_2-nb-3_5_1-bin-linux.bin", the java packagfe that includes net beans.

i get an error telling me to use the -concole flag, since for some reason it will not work graphically. fine, whatever. so when i run it using ./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin -console, i get an error saying:

"java.io.IOException: usr/bin/id: cannot execute at...." and a zillion lines following this.


i have downloaded the .bin file into home/me/j2sdk FWIW, and am running the install from there.

i have tried to set my PATH settings appropriately, but i really don't know what i am doung, yet. ugh.

PATH=$PATH:/home/me/j2sdk/bin
JAVA_HOME=/home/me/j2sdk/bin
export PATH
export JAVA_HOME

any suggestions? :-)



thank you,

jxl
 
Old 01-02-2004, 10:16 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
All you've to do to get Java running is to... install Java SDK ( a good place is /usr/local/j2sdk1.4 <your_version>)

when done, type java -version at the console. If it returns something like:

bash-2.05b$ java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)

Then you are good . To compile java code, there're two ways of doing it. The first one is using javaSDK. The compiler for it is javac, located somewhere at /usr/local/j2sdk <your_version>/javac. You could instead of setting the PATH, using a symbolic link to it:

ln -s /usr/local/j2sdk <your_version>/javac /usr/bin/javac

Now you can compile programs with javac <YourProg.java>, and run them with java YourProg.

The other way is installing gcj. A gcc extension for java. It is a very good replacement for Sun's kit, if you cannot get it to work . To compile a program, type:

gcj -C <YourProg.java>

A little offtopic, but you might want to give this good java IDE a shot:

http://drjava.sourceforge.net/

As a Java student myself, I'm in love with that little toy

Good luck!
 
Old 01-02-2004, 10:41 PM   #3
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Original Poster
Rep: Reputation: 15
that's the whole problem.

at this point, i *can't* install it. as described in the orig post, i get an error message, and it does not install.

it sounds like you know what to do - can you help me? :-)

thank you,

jxl
 
Old 01-02-2004, 10:50 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
hmmmm... is it the installation failing? Lemme see

hmmmmmm. I've got the package called j2sdk-1_4_2_03-linux-i586.bin. Then I've installed it with:

sh j2sdk-1_4_2_03-linux-i586.bin

The installation on Linux is not graphical as it Windows, but it's just as simple . You've said that you are trying to install "j2sdk-1_4_2-nb-3_5_1-bin-linux.bin". Is that the name of the file or the command you are issuing? Because it was pretty different for me Both command to install and package name (as you see above)
 
Old 01-03-2004, 12:26 AM   #5
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Original Poster
Rep: Reputation: 15
yeah, the filename is different than yours, *i think*it is because this one is the cobundle with net beans...

when i try to install using ./<filename>

i first get:

Installation Wizard

Initializing InstallShield Wizard...

Preparing Java(tm) Virtual Machine...

......................
......................
......................
......................
......................
java.io.IOException: /usr/bin/id:cannot execute
at java.lang.UNIXProcess.<init> (unknown source)
at java.lang.Runtime.execInternal (Native Method)

etc..etc..

any idea why this is hasppening?

thanks for the help so far!

jxl
 
Old 01-06-2004, 09:00 PM   #6
FF103
Member
 
Registered: Aug 2003
Location: Kentucky
Distribution: Mandrake 10.1
Posts: 157

Rep: Reputation: 30
Mandrake 9.1 is more of an RPM based distro, Get the RPM version of java and that will solve your problem. There is also an RPM version of Flash. You can find them both by googleing at
www.google.com/linux hope this helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install J2SDK 1.4 on Mandrale 9.2? hitsum Mandriva 5 08-06-2005 07:51 PM
j2sdk path problem alexliu56 Linux - Newbie 0 07-08-2004 01:55 AM
j2sdk install Larke Linux - Software 10 06-25-2004 02:11 PM
j2sdk install issues on Redhat 9 iceman42 Linux - Software 5 03-05-2004 12:46 AM
Problem with J2SDK and glibc escordeiro Linux - Newbie 4 09-20-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration