tomcat8.0启动时显示错误:Neither the JAVA_HOME nor the JRE_HOME environment ... ...
程序员文章站
2022-07-14 10:29:15
...
安装包解压后执行startup.bat错误如下:
D:\apache-tomcat-8.0.52\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
解决方法:
网上有很多说是要加个JAVA_HOME系统环境变量,加了依然没用,后来发现8.0以上版本是不需要的加系统环境变量的,后来是这么解决的:
在\path\bin\setclasspath.bat内最上方添加两行代码:
set JRE_HOME=D:\Program Files\Java\jre1.8.0_131
set JAVA_HOME=D:\Program Files\Java\jdk1.8.0_131
JRE_HOME所指的是jre目录
JAVA_HOME所指的是jdk目录
重新启动即可。
上一篇: matplotlib使用
推荐阅读
-
tomcat启动报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
-
Tomcat9+JDK 13报错Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run thi
-
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these enviro
-
关于Tomcat打开 **闪退** 及出现 **Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
-
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 完美解决(tomcat error)
-
tomcat8.0启动时显示错误:Neither the JAVA_HOME nor the JRE_HOME environment ... ...
-
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
-
(转)Neither the JAVA_HOME nor the JRE_HOME environment variable is defined解决方案
-
jira error: Neither the JAVA_HOME nor the JRE_HOME environment variable is defin
-
jira error: Neither the JAVA_HOME nor the JRE_HOME environment variable is defin