jdk

jdk

#################################### Java Runtime Environment ####################################
mkdir -p /as4k; cd /as4k;
wget http://192.168.1.8/chfs/shared/jdk8/jdk-8u231-linux-x64.tar.gz
tar xf jdk-8u231-linux-x64.tar.gz
cat << 'EOF' >> /etc/profile
export JAVA_HOME=/as4k/jdk1.8.0_231
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
EOF
source /etc/profile; jps; java -version