Install JDK
First, install JDK. My JDK is installed in the C drive. The JDK root directory is C:/Java/jdk5.
Then configure the environment variable
Right-click my computer> Properties> advanced> Environment Variables
Find the path "variable" in "system variables" and click the edit button.
Then, append C:/Java/jdk5/bin to the variable value;
Create an environment variable in "system variables"
Enter classpath in "variable name"
Enter.; C:/Java/jdk5/lib
Click OK.
Create an environment variable in "system variables"
Enter java_home in "variable name"
Enter C:/Java/jdk5 in "variable value"
Click OK.
So OK.
Enter Java-version in the console
If the JDK version is displayed, the installation is successful.
Install Tomcat
I used the decompressed version. I directly decompressed tomcat to the root directory of Tomcat on drive D as D:/tomcat.
Configure the environment variables below
Right-click my computer> Properties> advanced> Environment Variables
Find the path "variable" in "system variables" and click the edit button.
Then add D:/tomcat/bin to the variable value;
Create an environment variable in "system variables"
Enter catalina_home in "variable name"
Enter D:/tomcat in "variable value"
Click OK.
Start> RUN
Enter startup in the text box and click OK.
A DOS window is displayed and the startup information is displayed. After startup
Access http: // localhost: 8080/in IE/
In this case, a web page is displayed in the browser with a kitten. This indicates that Tomcat is successfully installed.