Installing j2sdk 1.4.0 on RedHat 7.2

Hi,

I've tried following the instructions on how to install the SDK on linux and it doesn't seem to be working. The instructions I'm following can be found at:

http://java.sun.com/j2se/1.4/install-linux.html

It seems to install correctly, but when I try to run java or javac, it gives me:

bash: java: command not found

When I ran the rpm.bin binary file, it runs through the license agreement and then asks to install. I say yes and it inflates j2sdk-1_4_0_01-fcs-linux-i386.rpm from j2sdk-1_4_0_01-linux-i586-rpm.bin. The file it inflates isn't the same filename as mentioned in the instructions.

I then run rpm -iv j2sdk-1_4_0_01-fcs-linux-i386.rpm after changing to root and it says:

Preparting packages for installation...

j2sdk-1_4_0_01-fcs

If someone could help me with installing, I would be very appreciative. Also, if you could tell me how to set my CLASSPATH, that would be helpful as well. Thanks

[972 byte] By [bi0h4z4rda] at [2007-9-27 9:00:28]
# 1

You need to include the JDK's bin directory in your PATH environment variable. Locate your .bash_profile file in your home directory. It'll be hidden but it's there.

Type more .bash_profile on the command-line. You'll see something like:

...

PATH=path1:path2:path3

export PATH

...

Using your favorite editor, append the path to your JDK bin directory to the current PATH variable. For example:

PATH=path1:path2:path3:/usr/j2sdk1.4.0/bin

Replace with whatever you path is. Logout and log back in. Try running "java" or "javac" again from the command-line.

mhartmana at 2007-7-8 17:54:29 > top of Java-index,Developer Tools,Java Compiler...