...
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).
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.
...