其实超简单,基本思路就是下载包,解压,配置环境变量tar -xzvf jdk-7u79-linux-x64.tar.gz -C /home/lhl/java/vi /etc/profileexport JAVA_HOME=/home/lhl/java/jdk1.7.0_79export PATH=$JAVA_HOME/bin:$PATHsource /etc/profilejavacjava -version要是能显示版本号神马的,你就大功告成了