Database Reference
In-Depth Information
Installing Oracle Java 7
The default installation of Linux systems usually contains the OpenJDK Java Runtime
Environment ( JRE ). This should be removed or, alternatively, OpenJDK should be re-
tained, but the default JRE should be set as Oracle JRE. This guide will use a 64-bit sys-
tem. To check whether your system has JRE, and what version of it executes, run the java
-version command in the shell:
# Check Java (important fields are highlighted)
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11)
(amazon-61.1.11.11.53.amzn1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
RHEL and CentOS systems
We are going to follow three basic steps for installing Oracle Java 6 for RHEL and CentOS
systems:
Downloading the binary file from the Oracle website : JRE 7 can be downloaded
from Oracle's website at http://www.oracle.com/technetwork/java/javase/down-
loads/jre7-downloads-1880261.html . Unfortunately, at the time of writing of this
topic, we couldn't perform wget to download this file from the command line.
This is due to the fact that Oracle mandates the users to accept the Oracle Binary
Code License before downloading can commence. The easiest way that I find is to
accept and download the file on your work desktop and then copy and paste it onto
the server using scp .
Choose the Linux x64-rpm.bin version to download in order to install it on
RHEL-like systems.
Installing a JRE : Set the downloaded file as executable, and execute it as follows:
$ chmod a+x jre-7u67-linux-x64-rpm.bin
$ sudo ./jre-7u67-linux-x64-rpm.bin
Search WWH ::




Custom Search