In this article, we are going to see how to update Java version from 1.7 to 1.8 in Linux

Verify Java Version

Current Java version is 1.7v now upgrade to 1.8v. Follow below steps to upgrade java version from 1.7 to 1.8

Download Java 1.8 for Linux 64bit

Download Java 1.8 for Linux 32bit:

Extract Java Downloaded tar file with tar command:

How to update Java version from 1.7 to 1.8 in Linux

Update Java 1.8 version

There are 3 programs which provide ‘java’.

Verify Java Version

Set Java Home path in Linux

Now, we have successfully updated Java version from 1.7v to 1.8v using tar file.

How to update Java version 1.7 to 1.8 using rpm file in Linux

Verify Java version

Download Java 1.8v for Linux 32 bit

Download Java 1.8v for Linux 64 bit

Install downloaded JDK:

JDK installed and ready to use, by default it is installed in /usr/java directory.

Now, Verify Java Version

Command to check which Linux version 

 

Command to check Linux Arch

I hope this guide helps you with the steps how to update java version from 1.7 to 1.8 in Linux using rpm package or tar file.