I'm a beginner at
this Java issues so I need help. I followed the installation
instructions that appear in the Java Sun official webpage but it's
just not working. I think I have a problem with the CLASSPATH and
PATH variables.
I have just installed the Java 2 SDK version 1.4.0_03 on a Linux
Red Hat 7.2 Operating System. I don't remember the kernel it has but
will check it if it's necessary.
I had this file:
j2sdk-1_4_0_03-linux-i586-rpm.bin
First, I copied that file to a new directory:
/usr/local/jdk1.2
Then I executed:
chmod a+x j2sdk-1_4_0_03-linux-i586-rpm.bin
And then:
./j2sdk-1_4_0_03-linux-i586-rpm.bin
That created the next file:
j2sdk-1_4_0_03-fcs-linux-i586-rpm
Then I executed:
rpm -iv j2sdk-1_4_0_03-fcs-linux-i586-rpm
And that created a new directory with all of the Java files. The
directory is:
/usr/java/j2sdk1.4.0_03
Then I type in the command line the next to configure the
variables:
set CLASSPATH=/usr/java/j2sdk1.4.0_03/lib:/home/claus/java:.
set PATH=$PATH:/usr/java/j2sdk1.4.0_03/bin
(/home/claus/java is the directory where I want to work)
But it doesn't work!!
I don't know what I'm missing.