Win10怎么安装jdk和配置环境变量?
时间:2022-02-15 03:18:52
环境变量是在操作系统中用来指定操作系统运行环境的一些参数,用户可以通过设置环境变量来运行进程。下面我们就来看看Win10如何安装jdk和配置环境变量的具体教程。
具体操作如下:
1、桌面右键点击此电脑,在打开的菜单项中,选择属性;
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_0.png)
2、打开的系统窗口中,点击左侧的高级系统设置;
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_1.png)
3、系统属性,高级选项卡下,点击最底下的环境变量;
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_2.png)
4、环境变量窗口中,点击系统变量下的新建;
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_3.png)
5、新建页面输入变量名为:JAVA_HOME,输入变量值为,你安装的JDK地址;
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_4.png)
6、在系统变量区域,选择新建按钮输入变量名为:CLASSPATH,输入变量值为。;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_5.png)
7、系统变量区域,选择 Path,点击下面的编辑,在打开的框中选择新建添加2行,一行输入 %JAVA_HOME%\bin,一行输入 %JAVA_HOME%\jre\bin
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_6.png)
8、按 Win + R 组合键,打开运行,并输入:cmd 命令,确定或回车,可以快速打开命令提示符窗口,然后输入并回车执行 javac 命令(环境变量配置成功后,会像下图那样显示一大堆东西);
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_7.png)
9、最后,继续在命令提示符窗口中,输入并回车执行 java -version 命令,查询当前安装的jdk版本。
![Win10怎么安装jdk和配置环境变量?](https://img.aspxhome.com/file/2023/1/a272308_8.png)
标签:Win10,jdk,配置环境变量,安装jdk和配置环境变量
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
苹果电脑Mac系统中运行软件显示Enable access for assitive devices解决方法
2023-06-09 07:08:18
![](https://img.aspxhome.com/file/2023/2/a214882_0s.jpg)
Windows10恢复已卸载应用的技巧
2022-12-24 05:51:41
![](https://img.aspxhome.com/file/2023/26/a226998_0s.jpg)
SUMIFS函数的使用方法和例子
2022-12-29 21:54:48
![](https://img.aspxhome.com/file/2023/8/a185378_0s.png)
Windows7下关闭IPV6隧道具体步骤
2022-10-19 22:35:18
WPS文档如何绘制竖线
2023-01-24 08:37:26
Word2010中怎样将多个文档合成一个文档
2023-04-16 16:11:29
wps2019文档怎么插入图表?wps2019文档插入图表教程
2023-01-04 12:33:54
![](https://img.aspxhome.com/file/2023/7/a166047_0s.jpg)
宏碁非凡怎么重装系统?宏碁非凡笔记本重装系统的教程
2022-01-17 09:40:23
![](https://img.aspxhome.com/file/2023/25/a217240_0s.png)
Win11系统安全中心部分功能打不开怎么办?
2023-10-07 05:28:18
![](https://img.aspxhome.com/file/2023/27/a237946_0s.jpg)
Excel表格数据怎么转换成分组堆积图?
2023-07-25 05:30:04
![](https://img.aspxhome.com/file/2023/2/41682_0s.jpg)
wps ppt怎么插入flash
2023-06-28 16:58:30
wps文字如何添加星空背景图
2023-11-04 09:04:46
word怎样输入倒过来的字体?
2023-07-02 19:13:37
![](https://img.aspxhome.com/file/2023/0/30590_0s.jpg)
word文档直接投影如何设置
2023-11-30 06:38:09
![](https://img.aspxhome.com/file/2023/2/18822_0s.png)
Win10预览版11099已知问题汇总 解决文件传输进度无法显示
2023-12-06 00:41:22
![](https://img.aspxhome.com/file/2023/28/a245894_0s.png)
Win7关机后让鼠标灯不亮的技巧
2022-10-09 13:31:16
![](https://img.aspxhome.com/file/2023/27/a232821_0s.jpg)
电脑休眠后自动断网是什么原因 Win10电脑休眠后断网解决方法
2023-07-09 22:55:04
![](https://img.aspxhome.com/file/2023/26/a219849_0s.png)
Win10专业版和Win10专业版有什么区别吗?
2022-02-07 06:27:18
![](https://img.aspxhome.com/file/2023/26/a221858_0s.png)
win10笔记本盖盖不关屏幕怎么设置?win10笔记本设置盒盖后不休眠
2023-10-02 22:37:56
![](https://img.aspxhome.com/file/2023/30/a265185_0s.jpg)
EXCEL财务函数-年金现值函数的应用-
2023-01-20 00:28:44