1. JDK1.1. Download JDK
1.2. Installing the JDK
JDK Installation path: C:\Java\jdk1.7.0_79\
JRE Installation path: C:\Java\jre7
1.3. Environment variable Configuration
Computer → properties → advanced system settings → advanced → environment variables. The environment variable settings are set under System variables. Includes Java_home, PATH, CLASSPATH.
java_home=c:\java\jdk1.7.0_79
Path=%java_home%\bin;%java_home%\jre\bin;
Classpath=.; %java_home%\lib;%java_home%\lib\tools.jar
Note that the original path of the variable value at the end of the number, if not, enter first, and then enter the above code.
1.4. Check the JDK version
Open the cmd Command window. Run Java-version. If the version information is displayed, the installation and configuration are successful.
2. Tomcat2.1. Download Tomcat
2.2. Install Tomcat
Unzip the tomcat package to the specified directory D:\DEVELOP\TOMCAT7, the name of the folder cannot appear with special characters such as spaces.
2.3. Configure Tomcat
Open the D:\Develop\tomcat7\conf folder. Edit the Server.xml file. Find the connector property in Server.xml and add uriencoding= "UTF-8".
Java Environment Installation Manual