Tomcat opens the startup.bat The reason for the flash

1. Reasons for not properly configuring JAVA_HOME,CLASSPATH,Path [verification method can open CMD, input Java,javac, and java-version in turn, if it can display some configuration information about Java, then the configuration is successful], if the configuration is not successful, a lot of people on the Internet have the answer, I will not go into details.

2. Default port 8080 is occupied

3 JDK and tomcat version does not match, this is also a problem, I used jdk11, found that the above two problems did not appear, but just can not run the tomcat server, finally find a needle in a haystack, looking for a long time, tomcat7.0X replaced by 9.0X,tomcat server can run normally.

Read More: