标签:bin inux $path class nbsp jre load file 配置
1 下载jdk
https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz?AuthParam=1542450035_d96827e3a14a29566e52dbdf27c5fe73
2 解压
tar -zxvf jdk-8u191-linux-x64.tar.gz
3 配置环境变量
配置环境 vi /etc/profile,在最后添加
export JAVA_HOME=/home/java/jdk1.8.0_11 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin
标签:bin inux $path class nbsp jre load file 配置
原文地址:https://www.cnblogs.com/syscn/p/9975049.html