Linux下Java安装与配置
下载链接
http://www.oracle.com/technetwork/java/javase/downloads/index.html
cd /root
tar -zxvf jdk-8u60-linux-x64.tar.gz
cp -r /root/jdk1.8.0_60 /usr/local/java
vi /etc/profile
JAVA_HOME=/usr/share/jdk1.6.0_43
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
source /etc/profile