Step 2: Unpack the Archive
# cd /usr/local/ # tar -zxvf jdk-7u51-linux-x64.tar.gz
Step 3: Setup the Environmental Variables. At your .bashrc
export JAVA_HOME=/usr/local/jdk1.7.0_51 export JRE_HOME=/usr/local/jdk1.7.0_51/jre export PATH=$JAVA_HOME/bin:$JRE_HOME/bin
Step 4: Check the version
# java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
No comments:
Post a Comment