Wednesday, January 8, 2014

How to install JDK 7 on CentOS

Version: OpenJDK 1.7

For the difference between OpenJDK and Oracle JDK, please reference here.

Installation Steps:
Step 1: Search available java versions in yum repository
yum search java | grep 'java-'

Step 2: Install specific version of java 
yum install java-1.7.0-openjdk.x86_64
yum install java-1.7.0-openjdk-devel.x86_64

Step 3: Test java version
java -version




No comments:

Post a Comment