首页 > 代码库 > ubuntu jdk

ubuntu jdk

tar zxvf  jdk-7u67-linux-x64.tar.gz

 

cp -R jdk1.7.0_67  /usr/local/jdk1.7.0_67

 

vim /etc/profile

xport JAVA_HOME=/usr/local/jdk1.7.0_67
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH

 

source  /etc/profile

 

ubuntu jdk