How to install Java8 JDK on Linux - List of commands

21:08
How to install Java8 JDK on Linux - List of commands

In this blog we are going to show you

All Listofcommands to install JAVA8 JDK on Linux

If you want to see the detailed article with images and all the steps please visit UK2blogger
Go to google and search for Java8 Download. Click on the first link that belongs to oracle.

List of commands to install Java JDK on Linux is listed below

Extract the donwnloaded tar file to opt directory
$ sudo tar -xf filename.tar.gz -C /opt/
Set the path for java8
 $ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.8.0_321/bin/java" 1
Change the java8 as default
$ sudo update-alternatives --config java
Check the java version
$ java -version
This was the List of commands to install Java8 in Linux or Kali Linux.