Install Oracle Java 7 update 51 On Fedora / Redhat / CentOS

Share it:

For Linux Platform Orcale has released an  update  for java V 7 ,the latest and current version of java is 7 update 51.

Many websites offering rpm but it is showing some problems,so for that better download the tar file provided by them and install.

In this Tutorial i will show you how to install Oracle java 7 update 51 On fedora 20 / 19 , Centos 6.X and redhat 6.X

Installation steps

Step 1: Download the tar file from their home site or Click HERE

Step 2: Extract the tar package to opt folder

Step 3:Setup alternatives to JAVA
alternatives --install /usr/bin/java java /opt/jdk1.7.0_51/bin/java 2
alternatives --config java
Step4 : verify Java version

 java -version

Step 5:Set the environment variables

setup JRE_HOME variable
export JRE_HOME=/opt/jdk1.7.0_51/jre
setup JAVA_HOME variable
export JAVA_HOME=/opt/jdk1.7.0_51
setup PATH variable
export PATH=$PATH:/opt/jdk1.7.0_51/bin:/opt/jdk1.7.0_51/jre/bin

Share it:

Post A Comment: