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:
./j2re-1_4_2_<version>-linux-i586-rpm.bin
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
j2re-1_4_2_<version>-linux-i586.rpm
in the current directory.
- Become root by running the
su command
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.
Note:
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.
<version>
For example, if you are downloading update 1.4.2_01, the following command:
./j2re-1_4_2_<version>-linux-i586.bin
would become:
./j2re-1_4_2_01-linux-i586.bin