新下载的一个Tomcat,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。
解决方式:
在setclasspath.bat的开头声明环境变量。如图所示:
重新启动tomcat完美解决。
新下载的一个Tomcat,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。
解决方式:
在setclasspath.bat的开头声明环境变量。如图所示:
重新启动tomcat完美解决。