Java.com

Download Help

Help Resources


Get Java Installation Help Now

What are the Linux x64 RPM Java installation instructions ?


This article applies to:
  • Platform(s): Red Hat Linux, SUSE Linux, Oracle Linux, Oracle Enterprise Linux, SLES
  • Java version(s): 6.0, 7.0

Linux System Requirements

See supported System Configurations for information about supported platforms, operating systems, desktop managers, and browsers.

You will also need a Pentium 166MHz or faster processor with a minimum of 75MB free disk space and a minimum of 64MB of RAM.


Note: For downloading Java other flavors of Linux see Java for Ubuntu, Java for Fedora


Follow these steps to download and install Java for Linux.
  1. Download
  2. Install
Download
This procedure installs the Java Runtime Environment (JRE) for 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location. You must be root to perform this installation.

  1. Go to http://java.com and click on the Download button.
  2. Download and check the download file size to ensure that you have downloaded the full, uncorrupted software bundle. 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.



Install
The instructions below are for installing version Java 7 Update 7 (7u7). If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal. Example: For Java 6u35 replace 7u7 with 6u35. Note that, as in the preceding example, the version number is sometimes preceded with the letter u, and sometimes it is preceded with an underbar, for example, jre1.7.0_07.

  1. Become root by running su and entering the super-user password.
  2. Change to the directory in which you want to install. Type:
    cd <directory path name>
    For example, to install the software in the /usr/java/ directory, Type:
    cd /usr/java

  3. Uninstall any earlier installations of the Java packages.

    rpm -e <package_name>

  4. Install the package.
    rpm -ivh jre-7u7-linux-x64.rpm

    To upgrade a package:
    rpm -Uvh jre-7u7-linux-x64.rpm

  5. Delete the .rpm file if you want to save disk space.
  6. Exit the root shell. No need to reboot.

Select Language | About Java | Support | Developers
Privacy | Terms of Use | Trademarks | Disclaimer

Oracle