新下载的一个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的开头声明环境变量。如图所示:

(windows)Neither the JAVA_HOME nor the JRE_HOME environment variable is defined问题解决。

重新启动tomcat完美解决。

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2021-07-15
  • 2022-01-16
  • 2021-07-18
猜你喜欢
  • 2021-05-18
相关资源
相似解决方案