点击右键编辑startup.bat和shutdown.bat,在最开始的地方添加下面两行:
SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_45(jdk目录)
SET TOMCAT_HOME=D:\apache-tomcat-8.0.24(tomcat目录)
另外,在startup.bat中,找到rem Guess CATALINA_HOME1 if not defined,将其下面一行改为:
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_45
反正我的是有用了😄😄😄
原文:https://blog.csdn.net/qq_25816185/article/details/68069509
网友评论