Why not use a later version of Tomcat? Several teachers say that the 7.0 version is best, so it's recommended. Before Ann Tomcat, my computer was loaded with JDK 9, installed several times Apache can not boot, the log shows that the "Boot error CREATEJAVAVM Failed system cannot find the file specified." Classmate said JDK 8 can, I changed 8, sure enough once succeeded, the following is the step.
Install JDK 8 First, this everyone knows, I will not repeat, and then go to download Tomcat 7.0 This is the address http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.82/bin/ Apache-tomcat-7.0.82.exe
Double-click Install, Continuous dot "Next", to this interface, path to select the folder you installed the JRE,
Next, this path is the installation path, it is best to choose a short path to the folder, my C:\Tomcat 7.0
Then we started to configure the environment variables, and here we use the environment variables of the JDK, so I'll write the JDK environment variables as well:
Configure the JDK environment variable in the system environment variable:
1. New, variable name: Java_home variable Value: C:\Program files\java\jre1.8.0_131 (the path where the JRE is installed)
2. New, variable name: CLASSPATH variable value:.; %java_home%\lib (If you have this variable name, you don't have to create a new one, just add it to the bottom line)
3. Variable name: PATH variable Value:%java_home%\bin
Configuration of Tomcat:
1. New, variable name: Tomcat_home Variable Value: C:\Tomcat 7.0
2. New, variable name: Catalina_home Variable Value: C:\Tomcat 7.0
3. Variable name: Path Plus:%catalina_home%\bin;%catalina_home%\lib
By the end of this configuration, open Apache Tomcat 7.0, click Start to launch, then open the browser, enter in the Address bar: localhost:8080, this page appears to be successful
Please correct me for what's wrong!
Tomcat7.0 configuration under the WIN10 system