Linux升级java15

1、下载
https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz
2、安装
[root@test ~]# tar -zxvf openjdk-15.0.2_linux-x64_bin.tar.gz -C /usr/local/
[root@test ~]# vim /etc/profile
export JAVA_HOME=/usr/local/jdk-15.0.2
export JRE_HOME=/usr/local/jdk-15.0.2
export PATH= J A V A H O M E / b i n : JAVA_HOME/bin: JAVAH​OME/bin:PATH
[root@test ~]# source /etc/profile
3、查看版本
[root@test ~]# java -version
openjdk version “15.0.2” 2021-01-19
OpenJDK Runtime Environment (build 15.0.2+7-27)
OpenJDK 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

上一篇:Java15


下一篇:全新Java入门到架构师课程之Java15编程基础-数组(1):数组声明、初始化、数组元素的界限和遍历