Java

Java in Action Downloads Help Center

Help Resources



Get Java Installation Help Now

What are the Linux x64 self-extracting binary installation instructions for Java ?


This article applies to:
  • Platform(s): Red Hat Linux, SUSE Linux, Oracle Linux, Oracle Enterprise Linux, SLES
  • Java version(s): 6.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 32MB of RAM.


Note: For downloading Java for 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
  1. Go to http://java.com and click on the Download button
  2. There are two types of installation packages.
    • Linux self extracting binary file
      This file can be used to install Java in a location chosen by the user and can be installed by anyone (not only root users). As long as you are not root user, it cannot displace the system version of the Java platform suppled by Linux.
    • Linux RPM package
      Linux RPM (Redhat Package Manager) uses RPM to install Java. In order to use this method, you need to have RPM available on your system. Otherwise use the other option.

    Download the package that best suits your needs. You can download the file to any of the directories on your system.
  3. 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 Linux self-extracting x64 file
  1. At the terminal: Type:
    su
  2. Enter the root password.
  3. Change to the directory in which you want to install. Type:
    cd
    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.
  4. Change the permission of the file you downloaded to be executable. Type:
    chmod a+x jre-6u<version>-linux-i586.bin
  5. Verify that you have permission to execute the file. Type:
    ls -l
  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 the Java in your home directory or a subdirectory for which you have write permissions.
  1. Start the installation process. Type:
    ./jre-6u<version>-linux-amd64.bin
    Note: If the file is in the current directory, prepend it with "./"

    This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.
type YES to agree to the license agreement
  1. Java is installed into its own directory. In this example, it is installed in the /usr/java/jre1.6.0_<version> directory. When the installation has completed, you will see the word Done.
Installation completes
  1. Java is installed in jre1.6.0_<version> sub-directory under the current directory. In this case, Java is installed in the /usr/java directory. Verify that the jre1.6.0_<version> sub-directory is listed under the current directory. Type:
    ls
  1. Delete the bin installation file if you want to save disk space.
  2. Exit the root shell.

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

Sun Microsystems