I.J2SDK

1.Go to http://www.java.sun.com/. Download J2SDK 1.3.1.

2.Install J2SDK 1.3.1. Place the file j2sdk-1_3_1-linux.bin in the following server directory:

       /var/install/
       cd/var/install/
       chmod 755 j2sdk-1_3_1-linux-rpm.bin
       ./j2sdk-1_3_1-linux-rpm.bin

This creates the file: j2sdk-1_3_1-linux.rpm

 3.Install the rpm with the following execution command:

       rpm -ivh j2sdk-1_3_1-linux.rpm

    This creates the server directory /usr/java/jdk1.3.1

4.Move this directory to:

/usr/local/jdk1.3
mv /usr/java/jdk1.3.0_02/usr/local/jdk1.3

5.Set environment variables:

       JAVA_HOME=/usr/local/jdk1.3
       export JAVA_HOME
       PATH=/usr/local/bin:${JAVA_HOME}/bin:${PATH}
       export PATH
       CLASSPATH=${JAVA_HOME}/lib/tools.jar:${JAVA_HOME}/lib/dt.jar
       export CLASSPATH