WINDOWS 10 JAVA_HOME 不工作 [英] WINDOWS 10 JAVA_HOME is not working

查看:69
本文介绍了WINDOWS 10 JAVA_HOME 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统是 Windows 10 64 位

My system is Windows 10 64 bit

我已经创建了一个环境变量JAVA_HOME"并更新了路径,但系统仍然显示JAVA_HOME"环境变量未定义运行此程序需要此环境变量

I have created an environment variable "JAVA_HOME" and updated the path but, still system is showing "The JAVA_HOME" environment variable is not defined This environment variable is needed to run this program"

另外,echo %JAVA_HOME% 没有显示路径

Also, echo %JAVA_HOME% is not displaying the path

请查看随附的屏幕截图.

Please review the attached screenshots.

推荐答案

您需要关闭并重新打开 cmd.exe 或重新启动计算机以使 JAVA_HOME 传播到您的命令提示符.

You need to close and reopen cmd.exe or restart the computer to get JAVA_HOME to propagate to your command prompt.

如果在您设置变量时 cmd 已打开,则它们在该会话中将不可用.

If cmd was open when you set the variables they will not be available in that session.

这篇关于WINDOWS 10 JAVA_HOME 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆