我使用此命令设置环境变量,但我不知道为什么它不起作用
D:\Developing tools\apache-tomcat-platform\bin>setx JAVA_HOME "C:\Program Files\
Java\jdk1.7.0_51"
SUCCESS: Specified value was saved.
D:\Developing tools\apache-tomcat-platform\bin>startup.bat
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
只需重启电脑即可解决问题:)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句