linux下安装多个jdk版本的切换问题
下载地址:
https://www.azul.com/downloads/zulu/
解压:
[root@localhost java]# tar -zxvf /usr/java/zulu8.38.0.13-ca-jdk8.0.212-linux_x64.tar.gz
配置jdk变量:
vi /etc/profile
export JAVA_HOME=/java/jdkzulu1.8.0_212 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin
java -version
posted on 2019-04-25 17:35 qiujiababy 阅读(1111) 评论(0) 编辑 收藏 举报