Install Java On CentOS

Published: 28 February 2018
on channel: Creative Technology
98
0

Open Below Link For Steps:
https://tecadmin.net/install-java-8-o...

Steps:
Step 1 – Download Latest Java Archive
cd /opt/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/ja..."
tar xzf jdk-8u161-linux-x64.tar.gz

Step 2 – Install Java 8 with Alternatives
cd /opt/jdk1.8.0_161/
alternatives --install /usr/bin/java java /opt/jdk1.8.0_161/bin/java 2
alternatives --config java


There are 3 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /opt/jdk1.7.0_71/bin/java
2 /opt/jdk1.8.0_45/bin/java
3 /opt/jdk1.8.0_144/bin/java
4 /opt/jdk1.8.0_161/bin/java

Enter to keep the current selection[+], or type selection number: 4

Step 3 – Check Installed Java Version
java -version


On this page of the site you can watch the video online Install Java On CentOS with a duration of hours minute second in good quality, which was uploaded by the user Creative Technology 28 February 2018, share the link with friends and acquaintances, this video has already been watched 98 times on youtube and it was liked by 0 viewers. Enjoy your viewing!