Linux serverNETWORK ADMINISTRATIONS

How to install JAVA 8 in Centos7 | JDK & JRE in Centos 7 | Install Java in Centos 7

In this video I have explained about how to install java 1.8 in centos 7.
———————————Install Oracle Java 8 JRE——————————

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/java/jdk/8u60-b27/jre-8u60-linux-x64.rpm”
========================================================================================

yum localinstall jre-8u60-linux-x64.rpm
========================================================================================

———————————Install Oracle Java 8 JDK—————————–

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/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm”

=========================================================================================

yum localinstall jdk-8u60-linux-x64.rpm
=========================================================================================

———————————Set Default Java—————————————-

java -version
=========================================================================================

————————Using Alternatives———————————————–

alternatives –config java
=========================================================================================

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *