To configure the JDK:
Three steps:
1. Environment variables = new Java_home C:\Program files\java\jdk1.8.0_40
2. Environment variables = new Class_path.; %java_home%\lib\dt.jar;. %java_home%\lib\tools.jar
3. System variable =>path, add:; C:\Program files\java\jdk1.8.0_40\bin;
C:\Program Files\java\jdk1.8.0_40\jre\bin
You can test in cmd at this point:
1.java-version
2.javac-version
Two success indicates that the JDK configuration was successful or the configuration failed
Click Startup.bat under Tomcat under the Bin directory to start the presence
Note the following 1407ms, which indicates that a normal start occurs when the time is present.
Attention
1. This time is not necessarily the same, the machine is different, the time is different
2. If the JDK configuration is successful, but this startup error, generally is D:\tomcat\conf\server.xml file error, so you need to change the file
Tomcat 8 configuration in win8.1