In this article, I will talk about how to upgrade JDK (Java Development Kit) from 1.6 to 1.7 on Red Hat Linux or CentOS. This would assume you have root permission and JDK 1.6 or lower version already installed. 

Let’s verify the java version installed on the server.

Download JDK 1.7 from Oracle Download Page  and upload to server in /tmp area Install downloaded JDK1.7 RPM by using rpm –ivh command

JDK 1.7 is installed now and ready to use. By default, it’s installed under /usr/java directory.

Now you can set /usr/java/jdk1.7.0_60 to JAVA_HOME environment variable to use JDK 1.7 Let’s verify the JAVA version now.

I hope this quick guide helps you in upgrading JDK on Linux platform.

How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 19How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 20How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 91How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 50How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 65How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 8