返回列表 发帖

[软件故障] 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
复制代码
欢迎光临:逐梦论坛

返回列表

Powered by Discuz! 7.2   论坛QQ群:逐梦论坛群

© 2001-2021 Comsenz Inc. 本站服务器由0634云主机提供 鲁公网安备 37120302000001号