Installing Java 2 Runtime Environment in the form of RPM packages in Red Hat Linux 8




Home and Applets > FAQ > About Java > About Java JRE 1.4 for Linux

This installation process is part of that provided by java.sun.com

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

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

  3. Become root by running the su command and entering the super-user password.

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

  5. Delete the bin and rpm file if you want to save disk space.

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


 
[Contact me] - Last updated September 12, 2014
Copyright 2002- pascal-man.com. All rights reserved.