The configuration tomcat is divided into two main steps, one is to configure the installation configuration Java, and the other is to configure the Tomcat installation configuration Java: This can be followed by the online tutorial, as follows: 1.first of all, we need to download the JDK installation package, which can be downloaded from www.sun.java.com. JRE is installed automatically after installation2. Setting Environment Variables
After the installation is complete, open My Computer---> Properties panel
Select Advanced system Settings
Select Environment Variables
In the system variable this block is set:
To create a new system variable:
Variable name: "java_home"
Variable value: "C:\Program files\java\jdk1.7.0_51"
Special Note: My JDK is installed in this location C:\Program files\java\jdk1.7.0_51 so just fill this out, where your own JDK is installed, just fill it out!
Locate the Path selection Editor in the system variable:
At the end add "\;%java_home%\bin; 】
Special note: In the last add, do not put the default delete Oh! If deleted, your part of the program will not be able to run Oh!
END
Verify that the environment variable is configured successfully:
In " accessories " Find " run ", enter "cmd"
Re-enter Java
If you have the following interface instructions you have configured! Your computer can run Java programs.
Download Tomcathttps://tomcat.apache.org/download after decompression as
Open path and add the corresponding lib and bin variable values: *\lib;*\bin
Go to the bin directory below:
Run Tomcat8w.exe Tomcat8.exe, prompting for the specified service is not installed unable to open the services ' TOMCAT8 '
Workaround:
open a command line prompt window = = Enter the tomcat installation directory ==> enter the bin directory ==> input: Service.bat install
Jre_home or Java_home error is an environment variable error
Java_home finally must not have \ and;
The configuration is wrong:
D:\Program Files (x86) \java\jdk1.7.0\;
D:\Program Files (x86) \java\jdk1.7.0;
Configuration is only OK:
D:\Program Files (x86) \java\jdk1.7.0
TOMCAT8 configuration Process Jre_home error, etc.