1、下载
下载地址:wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz 也可以手动下载传输上去
2、解压
tar -zxvf jdk-17_linux-x64_bin.tar.gz
3、修改环境变量
export JAVA_HOME=/home/dingchong/tools/jdk-17.0.12
export CLASSPATH=.:$JAVA_HOME/lib
export PATH=.:$JAVA_HOME/bin:$JAVA_HOME/lib:$PATH
4、刷新配置文件
source /etc/profile
5、查看版本
标签:bin,JAVA,17,tar,jdk17,jdk,Ubuntu,HOME,安装 From: https://www.cnblogs.com/dingchong/p/18339249