WINDOWS 10 JAVA_HOME is not working

回眸只為那壹抹淺笑 提交于 2019-12-22 11:25:22

问题


My system is Windows 10 64 bit

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"

Also, echo %JAVA_HOME% is not displaying the path

Please review the attached screenshots.


回答1:


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

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



来源:https://stackoverflow.com/questions/33771315/windows-10-java-home-is-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!