1. Download the JDK version
http://pan.baidu.com/s/1eR16I6e
2: Remove the JDK that comes with CentOS
2.1 See if Linux has installed and found the path to the installation
Rpm-qa |grep JDK
More RPM Commands: Please refer to: http://man.linuxde.net/rpm
2.2 If the JDK is loaded with uninstall
Yum Remove * * * *
2.3 java-version See if delete Chen Gong
3 Create a Java folder in the USR directory and put the downloaded Linux version of the JDK's package inside
Mkdir/usr/java
4 Unpacking the JDK package
TAR-ZXVF jdk-7u79-linux-x64.tar.gz
For more tar commands see http://www.cnblogs.com/li-hao/archive/2011/10/03/2198480.html
5: Configure Classpath
5.1 Open the configuration file for the environment variable
Vim/etc/profile
5.2 at the bottom plus
Export java_home=/usr/java/jdk1.7.0_80
Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/jre/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Path= $JAVA _home/bin
5.3 Save Exit
5.4 Let the configuration take effect immediately
Source/etc/profile
5.5 Testing
Development of E-Shop 2 (Linux configuration jdk)