Steps to install Java 1.7 on CentOS 6.3

Tadashi Shigeoka ·  Tue, November 20, 2012

I’ll introduce the steps to install Java 1.7 on CentOS 6.3 via yum.

Java
yum -y install java-1.7.0-openjdk java-1.7.0-openjdk-devel

Verify that Java was installed successfully.

$ java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.3.el6_3.1-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
$ javac -version
javac 1.7.0_09

That’s all from the Java Gemba.

Reference Information