Files
course/jdk.md
王鹏 5597ca12de init
2025-08-14 14:46:45 +08:00

20 lines
956 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

如果已经安装jdk配置好了环境变量请忽略此步骤
#### 下载JDK
- 开发环境 → 百度云盘
- [官网下载](https://www.oracle.com/technetwork/java/javase/downloads/index.html)
#### 安装步骤
1. 安装JDK 选择安装目录 安装过程中会出现两次 安装提示 。第一次是安装 jdk ,第二次是安装 jre
2. 安装到默认位置即可,也可以自定义安装路径。(记住安装路径,配置环境变量需要用)
3. 安装完JDK后配置环境变量 计算机→属性→高级系统设置→高级→环境变量
4. 系统变量→新建 `JAVA_HOME` 变量 。变量值填写jdk的安装路径
5. 系统变量→寻找 `Path` 变量→编辑,在变量值最后输入 `%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;`
6. 系统变量→新建 `CLASSPATH` 变量,变量值填写 `.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar`
7. 检验是否配置成功 运行cmd 输入 `java -version`