Java is not installed in the system
Installation method:
1. command to install directly.
1.1 RPM Command
1.2 YUM command
2. Source code installation. Recommended
2.1 Download the corresponding version of the Java package
2.2 Creating a Directory
2.3 Extract the downloaded Java package to the newly created directory
2.4 Setting environment variables
Reference: http://www.mamicode.com/info-detail-613410.html
Java is already installed in the system and you want to upgrade the Java version
1. Query the system default installed Java
2. Uninstalling the system comes with Java
3. Install a new version of Java using either of the methods described in the previous section
Reference: http://blog.csdn.net/zhengjie19/article/details/49100873
Java is already installed in the system and you want to install a different version of Java
1. View the installed Java
2. Install the new version of Java using the source installation method
3. Managing multiple versions of Java using the alternative tool
Reference:
http://blog.csdn.net/zhandoushi1982/article/details/50807282
Http://www.cnblogs.com/xu-dong/p/6429301.html
Centos installation Java