Objective
This paper is mainly recorded under the CentOS 6.7 system installation JDK7 process record, the following words do not say, come together to see.
The method is as follows:
1, the official Oracle Download the latest JDK installation package, in order to facilitate the installation of recommended download RPM package
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Perform installation on server side
sudo rpm-ivh/directory/jdk-7-linux-x64.rpm
3. Set environment variable
Here we need to find profile files, add environment variables:
Append the following information to the profile file:
Export java_home=/usr/java/jdk1.7.0
export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
export path= $PATH: $JAVA _home/bin
Save Exit, execute:
Summarize
The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if you have questions you can message exchange.