下载后解压
下载地址:https://adoptopenjdk.net/
JDK全局环境配置
-
新建系统变量:
变量名:JAVA_HOME
变量值:jdk解压后路径。示例:D:\jdk\jdk8u312-b07 -
编辑系统变量 Path,新建项:
- %JAVA_HOME%\bin
- %JAVA_HOME%\jre\bin
- 检查,新打开PowerShell,输入 java -version
Microsoft Windows [版本 10.0.22621.1702]
(c) Microsoft Corporation。保留所有权利。
C:\Users\14320>java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_312-b07)
OpenJDK 64-Bit Server VM (Temurin)(build 25.312-b07, mixed mode)
C:\Users\14320>
标签:JAVA,JDK,version,14320,b07,java,安装
From: https://www.cnblogs.com/hanliukui/p/17398865.html