centos_jdk

centos_jdk


wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz"
tar -zxvf  jdk-7u79-linux-x64.tar.gz
vi /etc/profile

JAVA_HOME=/usr/local/src/jdk1.7.0

PATH=$PATH:$JAVA_HOME/bin

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME PATH CLASSPATH

. /etc/profile

java -version



Loading Disqus comments...
Table of Contents