Installing JDK SE1.8 with CentOS
The Yum are usually installed through the OpenJDK
Typically used when developing on a Windows platform is SUNJDK
To avoid possible problems, uninstall your own OPENJDK installation SUNJDK
View the OPENJDK version first
Yum List installed |grep Java
Yum-y Remove java-1.6.0-openjdk.x86_64 Delete openjdk 1.6.0
Want to install SUNJDK to install via wget-c +url
Wget supports HTTP HTTPS FTP protocol
Find the download address for SUNJDK
wget http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.rpm
If you can't download the first download on the Windows platform and then copy download the address the URL also comes with an extra long request parameter
Install RPM-IVH directly after downloading jdk-8u111-b14-jdk-8u111-linux-x64.rpm
Do not configure environment variables after installation
Using Java-version
Java Version "1.8.0_111"
Java (TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot (TM) 64-bit Server VM (build 25.111-b14, Mixed mode)
Installation Successful
The difference between jdk* (SUNJDK) and OPENJDK
OPENJDK is an open source version of the JDK
SUNJDK differs from OPENJDK's licensing protocol
OPENJDK's source code is incomplete
OPENJDK contains only the most streamlined JDK