我使用此命令设置环境变量,但我不知道它为什么不起作用
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
答案 0 :(得分:0)
只需重新启动电脑即可解决问题:)