Development environment: Tomcat version apache-tomcat-7.0.59-windows-x86
At the moment I know that there are two ways to start up, both in the command-line format and through the Startup.bat batch file.
1. Under command-line format, enter the installation directory of the Tomcat server to the bin directory and start Startup.bat. or use%tomcat_home%\bin\startup.bat directly.
This startup method is cumbersome to enter the Tomcat installation directory each time it is started.
2. Start Startup.bat by configuring the PATH environment variable (System environment variable takes effect requires restart command line format)
Create a new system environment variable named Catalina, with the value of the Tomcat installation directory, where the directory is the top level directory of the Bin folder
Add%catalina%\bin to the PATH environment variable
Restart the command line and enter Startup.bat directly to start the Tomcat server successfully.
If the variable value or variable name of the Catalina system environment variable is set incorrectly, the following error occurs:
The CATALINA_HOME environment variable is not defined correctly
This environment variable are needed to run
This is because Startup.bat initiated in this way will read the corresponding system environment variables.
Workaround: Modify the variable name or variable value correctly.
Tomcat Boot Mode