linux 加载jdk 14.0.1

下载 $ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/14.0.1+7/664493ef4a6946b186ff29eb326336a2/jdk-14.0.1_linux-x64_bin.rpm

授权 sudo chmod 755 jdk-14.0.1_linux-x64_bin.rpm

安装 rpm -i jdk-14.0.1_linux-x64_bin.rpm

环境变量: vim /etc/profile

JAVA_HOME=/home/fanqi/jdk1.8.0_202
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME PATH CLASSPATH

相关推荐