2025-03-26 00:02:56 +08:00

53 lines
1.2 KiB
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.

#java
点击
![[Pasted image 20231212144454.png]]
进行安装
双击下载下来的安装包。
![[Pasted image 20231212144208.png]]
点击下一步;
注意:记住自己安装在那个文件夹里,后面需要用到。
就是下图红框里的路径,记住了,尽量不更改路径。
![[Pasted image 20231212144228.png]]
最后,关闭就行了。
![[Pasted image 20231212144239.png]]
右键此电脑 -> 选择属性。
打开环境变量。
![[Pasted image 20231212144255.png]]
![[Pasted image 20231212144258.png]]
![[Pasted image 20231212144301.png]]
找到 “Path” -> ”编辑“
![[Pasted image 20231212144309.png]]
选择“新建” - > (将之前重点记录下来的文件夹路径填上) 注意:在路径后接 bin, 如图所示。
![[Pasted image 20231212144327.png]]
OK安装完了.
最后可以测试一下
“win+r” ,在运行中输入 “cmd", 打开命令行。
![[Pasted image 20231212144355.png]]
在其中分别键入命令“java-version”“java”“javac”几个命令出现画面说明环境变量配置成功;
如图所示。
![[Pasted image 20231212144410.png]]
![[Pasted image 20231212144423.png]]