1. Configure Java environment variables:
A. Add the variable "java_home" in "system variables" and the variable value is "D:/j2sdk5.0". The variable value is the JDK installation path;
B. Add the variable "class_path" and the variable value is "% java_home %/lib;
C. Add "% java_home %/bin" to the variable value named path in "system variables", which are separated;
2. Configure Tomcat Environment Variables
A. add the variable "catalina_home" to "system variables" and the variable value is "D:/Apache-Tomcat-5.5.27, the variable value is the tomcat installation or decompression path;
B. APPEND "% catalina_home %/common/lib" to the variable value named "class_path" (created in the previous step), separated;
C. APPEND "% catalina_home %/bin" to the variable value named path (the path in the first step), separated;
3. Configure ant Environment Variables
A. Add the variable "ant_home" in "system variables" and the variable value is "D:/ant". The variable value is the decompressed path of ant;
B. APPEND "% ant_home %/bin" to the variable value named path (same as path in step 1), separated;
Test method:
Start-> Run-> cmd:
Input in the command line separately (in any directory)
Java-version press ENTER
Ant-version press ENTER
Catalina version