简体   繁体   中英

Can't start tomcat with bat file in windows

I have unzipped apache-tomcat-8.0.28 successfuly.Then I tried to start tomcat using cmd with startup.bat .But it returns below and tomcat isn't started.

Using CATALINA_BASE:   "D:\apache-tomcat-8.0.28"
Using CATALINA_HOME:   "D:\apache-tomcat-8.0.28"
Using CATALINA_TMPDIR: "D:\apache-tomcat-8.0.28\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_66"
Using CLASSPATH:       "D:\apache-tomcat-8.0.28\bin\bootstrap.jar;D:\apache-tomcat-8.0.28\bin\tomcat-juli.jar"

What should I do ?

startup.bat typically opens a new command line. If the new command line closes immediately, it's hard to recognize the error message that's displayed for fractions of a second.

You can check error messages in tomcat's log/catalina.out or see them interactively by using catalina.bat run - this will not open a new window and not go to the background - instead start tomcat in the current command line window, displaying all the log information. It should be easy to spot the problem this way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM