Linux x64 RPM Java installation instructions
This article applies to:
- Platform(s): Oracle Enterprise Linux, Oracle Linux, Red Hat Linux, SLES, SUSE Linux
- Java version(s): 7.0, 8.0
Linux System Requirements
See supported System Configurations for information about supported platforms, operating systems, desktop managers, and browsers.
Note: For downloading Java other flavors of Linux see Java for Ubuntu Java for FedoraFollow these steps to download and install Java for Linux.
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.
- Go to http://java.com and click on the Download button.
- 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

u
and sometimes it is preceded with an underbar, for example, jre1.8.0_73
.
- Become root by running su and entering the super-user password.
- 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
- Uninstall any earlier installations of the Java packages.
rpm -e
package_name - Install the package.
rpm -ivh jre-8u73-linux-x64.rpm
To upgrade a package:
rpm -Uvh jre-8u73-linux-x64.rpm
- Delete the .rpm file if you want to save disk space.
- Exit the root shell. No need to reboot.