1.上传jdk
2.tar
cd /usr/local/software
tar -zxvf jdk-7u67-linux-x64.tar.gz
mv jdk1.7.0_67 jdk1.7
3.vim /etc/profile
JAVA_HOME=/usr/local/software/jdk1.7
JRE_HOME=/usr/local/software/jdk1.7/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH