Case insensitive, if the same variable name exists, use edit to modify the variable value.
The variable is named Java_home, and the variable value is: C:\JDK (depending on the JDK path you installed, if this is the default, this form C:\Program Files
\java\jdk1.7)
The variable is named Classpath and the value of the variable is.; %java_home%\lib;
The variable is named path and the variable value is%java_home%\bin
Now that you have completed the environment configuration of the JDK, enter the Java-version test in the cmd command line interface to install the
Configuring the Tomcat environment variable
To open the system environment variable, please refer to the third step diagram operation.
Add the following variable in the system variable
1) New Tomcat_home variable
Variable name Tomcat_home
Variable Value C:\tomcat
The value of the variable is the Tomcat decompression path that we downloaded, here my is c:\tomcat, if have doubts, can refer to fifth step.
Windows 7 system installation and configuration Tomcat server environment
2) New Catalina_home variable
Variable name Catalina_home
Variable Value C:\tomcat
Yes, the value of the Catalina_home variable is the same as the value of the Tomcat_home variable.
Windows 7 system installation and configuration Tomcat server environment
3) Modify the variable path
Locate the path variable name in the system variable, double-click or click Edit, and add the following at the end
;%catalina_home%\bin;%catalina_home%\lib
It is important to note that the values of each variable must be separated.
Windows 7 system installation and configuration Tomcat server environment
4) Start the Tomcat server
Enter startup return under CMD Command window, run as shown
Windows 7 system installation and configuration Tomcat server environment
Windows 7 system installation and configuration Tomcat server ring
Configuration of Windows Tomcat and JDK environment variables