ubuntu14.04安装jdk

1.down jdk from internet
2.tar zvxf ***.tar.gz
3.sudo mv tar jdk***/ /usr/
4.vim /etc/profile
append these information to this file
 
export JAVA_HOME=/usr/jdk1.8.0_65
export JRE_HOME=/usr/jdk1.8.0_65/jre
export PATH=$PATH:/usr/jdk1.8.0_65/bin

export CLASSPATH=./:/usr/jdk1.8.0_65/lib:/usr/jdk1.8.0_65/jre/lib


(use jdk1.8.0_65 for example,change the version to your jdk version)

你可能感兴趣的:(Linux)