Pages

Saturday, May 3, 2014

Installing the JDK 1.7

Extracting the Tar File

extract the jdk-7u55-linux-x64.tar.gz file as follows.

tar xzvf jdk-7u55-linux-x64.tar.gz

After extracting the tar file directory structure as

jdk1.7.0_55/THIRDPARTYLICENSEREADME-JAVAFX.txt
jdk1.7.0_55/THIRDPARTYLICENSEREADME.txt
jdk1.7.0_55/README.html
jdk1.7.0_55/LICENSE
jdk1.7.0_55/db
jdk1.7.0_55/COPYRIGHT
jdk1.7.0_55/src.zip
jdk1.7.0_55/include
jdk1.7.0_55/release
jdk1.7.0_55/man
jdk1.7.0_55/jre
jdk1.7.0_55/bin
jdk1.7.0_55/lib


Set JAVA_HOME

export JAVA_HOME=/home/user/jdk1.7.0_55/

Set PATH

export PATH=$JAVA_HOME/bin:$PATH

No comments:

Post a Comment