解决Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these envir
·
在安装tomcat并且环境变量检查无误之后启动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错误。
解决方法:打开 tomcat 的 bin 目录下的 catalina.bat

在文件加入
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101
set JAVA_JRE=C:\Program Files\Java\jre1.8.0_101
更多推荐
所有评论(0)