Environment configuration for java JDK and Tomcat (Installation-free version) 1. After JDK is installed, configure the environment. Right-click the computer and choose Properties> advanced system Settings> enter environment variable 2. in the system variables, create a project variable named JAVA_HOME C: \ Program Files \ Java \ jdk1.7.0 (JDK installation path, only to the upper layer of the bin directory) CLASSPATH % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar (% between the reference, and then add the corresponding path) CATALINA_HOME D: \ Android \ Tomcat \ apache-tomcat-7.0.12-windows-x86 \ apache-tomcat-7.0.12 (Tomcat storage path) finally, add the following Variable % CATALINA_HOME % \ bin; % CATALINA_HOME % \ lib \ servlet-api.jar; % CATALINA_HO to the path ME % \ lib \ jsp-api.jar; now, after the java JDK and Tomcat environment configuration is complete, you want to determine whether the configuration is successful, the following step 1 checks whether java JDK is configured successfully. Enter the console and enter java. If "java" is not an internal or external command, or a program or batch file that can be run, the configuration is not successful. Otherwise, if something related to java appears, it means it is successful. 2. check whether Tomcat configuration is successfully entered in the bin directory of Tomcat and find startup. bat, double-click it to run. If it passes through, it may not be configured successfully (for further confirmation, enter localhost: 8080 or 127.0.0.1: 8080 in the address bar of the webpage, if there is no response, the configuration is not successful. Otherwise, the configuration is successful.