Click to See Complete Forum and Search --> : Java2 SDK Installation.


Arjay
06-16-2002, 01:45 PM
Hi,

I've recently downloaded Java2 SDK 1.4.0 from sun.java.com. I followed all the installation instructions:

Copy j2sdk-1_4_0_<version number>-linux-i586.bin to the directory into which you want to install the Java 2 SDK

Run j2sdk-1_4_0_<version number>-linux-i586.bin

chmod a+x j2sdk-1_4_0_<version number>-linux-i586.bin

./j2sdk-1_4_0_<version number>-linux-i586.bin

Then i write a small program, save it into my home directory then try to complile it:

# javac program.java
bash: javac: command not found

So i use the full path like the tutorial says:

# /usr/local/j2sdk1.4.0_01/javac

And i get 'no such file or directory.

The installation didn't have any errors and i got the 'Done' bit at the end and taken back to the prompt, so i presume nothing went wrong.

Anyway help would be appeciated.

Arjay.

I'm using Slackware 8.0.

scanez
06-16-2002, 03:09 PM
First, are you sure the directory is /usr/local/j2sdk1.4.0_01/? If so, the commands are in the bin subdirecoty, so you would do

/usr/local/j2sdk1.4.0_01/bin/javac

OR add /usr/local/j2sdk1.4.0_01/bin to your path, OR make symlinks to javac/java in /usr/local/bin ;)

Arjay
06-16-2002, 03:50 PM
Hey thanks a lot, that seems to have done the trick, it doesn't mention anything about /bin in the tutorial.
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html

Thanks again for your help

Arjay :)