WINDOWS 10 JAVA_HOME 不工作 [英] WINDOWS 10 JAVA_HOME is not working
问题描述
我的系统是 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屋!