Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to download a version of Sun JDK, navigate to Sun's Java website (http://java.sun.com/) and choose either the Java Standard Edition (Java SE) or Java Enterprise Edition (Java EE).  After agreeing to Sun's licensing agreement, download the Linux RPM in self-extracting file (jdk-6u2-linux-i586-rpm.bin).
Image Added
Once you have downloaded the necessary file to the machine it will be installed upon, we can begin the installation process.  The RPM must be executable in order for it to be installed, so chmod in the example below and execute the RPM.  Several pages of licensing terms will be displayed which you must agree to abide by before the JDK will be installed.  By default, the JDK will be installed under the /usr/java directory with sym links to the version installed.

Panel

[root@localhost ~]# chmod 755 jdk-6u2-linux-i586-rpm.bin
[root@localhost ~]# ./jdk-6u2-linux-i586-rpm.bin
... Sun JDK installation licensing terms and installation dialog
[root@localhost ~]# cd /usr/java
[root@localhost java]# ls -l
lrwxrwxrwx 1 root root   16 Jun 21 14:56 default -> /usr/java/latest
drwxr-xr-x 9 root root 4096 Jul 26 08:35 jdk1.6.0_02
lrwxrwxrwx 1 root root   21 Jul 26 08:36 latest -> /usr/java/jdk1.6.0_02
[root@localhost java] #

 Now that the Sun JDK is installed, we need to set up the necessary environment variables for Java and Tomcat for all users.

Step 3: Set up necessary environment variables

...