Skip to content

Java不再提供JER又不想安装JDK怎么办? #6

Answered by bitcookies
pudding0503 asked this question in 问答
Discussion options

You must be logged in to vote
  1. 去 Oracle 下载 JDK 包,下载 zip 格式的包:https://www.oracle.com/java/technologies/downloads/#jdk18-windows
  2. 解压缩后放到合适的目录
  3. 配置环境变量
CLASSPATH=,;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
JAVA_HOME=D:\dev\jdk-11.0.15

PATH=;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

(注:注意:变量值之间用";"隔开。注意原来Path的变量值末尾有没有;号,如果没有,先输入;号再输入。)
  1. 输入 java -version 检查 Java 版本

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pudding0503
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
question Further information is requested
2 participants