Install Java on Linux

Please visit my website and subscribe to my youtube channel for more articles

https://devops4solutions.com/

wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.rpmsudo yum localinstall jdk-8u171-linux-x64.rpmexport JAVA_HOME=/usr/java/jdk1.8.0_171/
export JRE_HOME=/usr/java/jdk1.8.0_171/jre

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

export PATH
sudo alternatives --config java

Written by

Devops Automation Enginneer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store