Board logo

标题: [软件故障] Tomcat启动过程中找不到JAVA_HOME JRE_HOME的解决方法 [打印本页]

作者: shillan    时间: 2020-11-26 15:47     标题: Tomcat启动过程中找不到JAVA_HOME JRE_HOME的解决方法

现象:Windows10系统中运行Tomcat 7.0.107时提示:
D:\Soft\apache-tomcat-7.0.107\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


解决:bin\setclasspath.bat中,rem Otherwise either JRE or JDK are fine上面添加:
  1. set JAVA_HOME=D:\Program Files\Java\jdk1.8.0_121
  2. set JRE_HOME=D:\Program Files\Java\jre1.8.0_121
复制代码





欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/) Powered by Discuz! 7.2