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  - 15How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 90How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 30How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 70How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 31How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 1How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 13How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 22How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 88How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 57How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 29How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 79How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 44How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 39How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 78How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 53How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 73How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 33How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 2How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 45How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 70How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 36How to Upgrade JDK 1 6 to 1 7 on Linux or CentOS  - 76