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
程序员文章站
2022-04-22 19:33:32
Tomcat使用的是https://tomcat.apache.org/download-90.cgi Tomcat9 之前安装的JDK 13,有JAVA_HOME环境变量地址(C:\Program Files\Java\jdk-13.0.1)但是没有找到JRE_HOME环境变量地址jre,应该是J ......
tomcat使用的是 tomcat9
之前安装的jdk 13,有java_home环境变量地址(c:\program files\java\jdk-13.0.1)但是没有找到jre_home环境变量地址jre,应该是jdk 13的使用jmods打包方式替代了jdk8中的jre(没有jre文件夹了)。
重新下载个 jdk8 (需要登录,账号:2696671285@qq.com 密码:oracle123),也可以下载windows7对应的jdk
下载完解压重新配置java_home、jre_home。重新打开命令行就可以正常启动tomcat了。
tomcat和java jdk对应关系
推荐阅读
-
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
-
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 envir