How to install Java8 JDK on Linux - List of commands
21:08
All Listofcommands to install JAVA8 JDK on Linux
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" 1Change the java8 as default
$ sudo update-alternatives --config javaCheck the java version
$ java -versionThis was the List of commands to install Java8 in Linux or Kali Linux.