Article From:https://www.cnblogs.com/heqiuyong/p/9736052.html

Download JDK compression package jdk-9.0.4_linux-x64_bin.tar

Upload decompression to /usr/local/java directory

Configure environment variables

vi /etc/profile

## FOR JAVA ##

export JAVA_HOME=/usr/local/java/jdk-9.0.4/

export JRE_HOME=${JAVA_HOME}/jre

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

export PATH=${JAVA_HOME}/bin:$PATH

source /etc/profile

 

Link of this Article: Centos install JDK

Leave a Reply

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