Download Help

Printable Version

What are the Linux 64-bit installation instructions for Java ?

This article applies to:
  • Platform(s): Oracle Enterprise Linux, Oracle Linux, Red Hat Linux, SLES, SUSE Linux, Ubuntu 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 Fedora

Follow these steps to download and install Java for Linux.
  1. Download
  2. Install
This procedure installs the Java Runtime Environment (JRE) for 64-bit Linux, using an archive binary file (.tar.gz).

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

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

    Note about root access: To install Java in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install Java in your home directory or a subdirectory for which you have write permissions.
  2. Move the .tar.gz archive binary to the current directory.
  3. Unpack the tarball and install Java
    tar zxvf jre-7u7-linux-x64.tar.gz

    The Java files are installed in a directory called jre1.7.0_07 in the current directory. In this example, it is installed in the /usr/java/jre1.7.0_07 directory. When the installation has completed, you will see the word Done.
  4. Delete the .tar.gz file if you want to save disk space.

Find expert help on Java installation and setup

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