Oracle (Sun) Java on CentOS 6

Sometimes OpenJDK won’t cut it.

Download JDK or JRE binaries

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Get the RPM files from above onto your Linux box.

Install JDK or JRE

rpm -ivh <JDK or JRE rpm file>

Verify proper install

If you get something like this, everything installed properly:

[user@server]# java -version
java version “1.7.0_51”
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
[user@server]# javac -version
javac 1.7.0_51



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s