How to start Tomcat flash has become a big problem for many people who have just come into contact with Tomcat development environment. Many users don’t know what causes this situation. Click to check the flash of Tomcat and find out the solution to solve your problem.
- Software name:
- Apache Tomcat 8.5.31 32-bit / 64 bit official free version
- Software size:
- Update time:
- 2018-05-07Download now
-1. First of all, we should understand the reason why we can’t start. The method is to run the startup.bat file from the command line, so that the program will not flash by and print the reason why it can’t be started to the window.
Readers should be very clear about the method of starting Tomcat from the command line, which is as follows: start the command line window with CMD, go to the bin directory of Tomcat through the CD command, and run startup.bat.
– 2. Through the prompt of the command line, we can see that this is because Java is not configured on the computer_ Home or JRE_ Home. Then addJAVA_HOMEAnd JRE_ HOME。 The specific steps are computer > Properties > environment variables, and then add system variables;
– 3. Add Java_ Home and JRE_ After the two system variables of home, put the two variables into the path system variable by appending them directly after the value of the path variable【;%JAVA_HOME%;%JRE_HOME%】Attention! Semicolon is the division symbol of environment variable.
– 4. After setting variables, close the previous command line window, restart a new command line window and run it againstartup.batOrder, problem solving.
The above is the solution to the problem that Tomcat can’t be started in a flash. I hope it can help you. If you have any questions, you can leave us a message in the comment box below. We will try our best to answer for you. Thank you for your support as always, and please continue to pay attention to the follow-up tutorials and software of developer.