This installation process is part of that provided by java.sun.com
- Download and check the file size.
You can download to any directory you choose. (e.g. /usr/java/)
Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.
- Extract the contents of the downloaded file.
Change directory to where the downloaded file is located.
First, run the following command to set the executable permissions:
chmod a+x j2re-1_4_2_<version>-linux-i586-rpm.bin
Then run the binary to extract the RPM file:
Note that the initial "./" is required if you do not have "." in your PATH environment variable.
The script displays a binary license agreement, which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates the file
in the current directory.
- Become root by running the
and entering the super-user password.
- Run the rpm command to install
the packages that comprise the Java 2 Runtime Environment:
rpm -iv j2re-1_4_2_<version>-linux-i586.rpm
- Delete the bin
and rpm file
if you want to save disk space.
- Exit the root shell.
For any text on this page containing the following notation, you must substitute the appropriate Java 2 Runtime Environment update version number for the notation.
For example, if you are downloading update 1.4.2_01, the following command: