Quick guide to download and install OpenJDK on centos. - OpenJDK Community Version
OpenJDK is the short form of Open Java Development Kit similar to Oracle's Java Development Kit used to develop Java Applications. Main difference between Oracle JDK and OpenJDK is that OpenJDK is free for all while Oracle Java Development Kit or Oracle JDK requires commercial license.
For more details refer openjdk vs oracle jdk
And zulu openjdk vs openjdk .
If you want to know more about OpenJDK, you can go through Open Java Development Kit Quick guide.
Note: To uninstall previously installed OpenJDK / jre from centos please refer Uninstall OpenJDK From CentOS
To Install OpenJDK 8 Java Runtime - Enter the below command on the centos command line.
$ sudo yum install java-1.8.0-openjdk
$ sudo yum install java-1.8.0-openjdk-deve1
Once the OpenJDK 8 installation is complete, we can verify the installed OpenJDK 8 version using below Command.
On Centos, Go to prompt and type java -version
The above command prints the OpenJDK 8 version you installed.
Java -version
To Install OpenJDK 7 Java Runtime - Enter the below command on the centos command line.
$ sudo yum install java-1.7.0-openjdk
$ sudo yum install java-1.7.0-openjdk-deve1
Once the OpenJDK 7 installation is complete, we can verify the installed OpenJDK 7 version using below Command.
On Centos, Go to prompt and type java -version
The above command prints the OpenJDK 7 version you installed.
Java -version
To Install OpenJDK 6 Java Runtime - Enter the below command on the centos command line.
$ sudo yum install java-1.6.0-openjdk
$ sudo yum install java-1.6.0-openjdk-deve1
Once the OpenJDK 6 installation is complete, we can verify the installed OpenJDK 6 version using below Command.
On Centos, Go to prompt and type java -version
The above command prints the OpenJDK 6 version you installed.
Java -version
Note: Here is the list of OpenJDK known-issues OpenJDK Known Issues
Read Next!
OpenJDK On Linux