1,新建变量名:JAVA_HOME,变量值:C:\Program Files\Java\jdk1.7.0
2,打开PATH,添加变量值:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
3,新建变量名:CLASSPATH,变量值:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
4,新建变量名:CATALINA_BASE,变量值:C:\tomcat
5,新建变量名:CATALINA_HOME,变量值:C:\tomcat
6,打开PATH,添加变量值:%CATALINA_HOME%\lib;%CATALINA_HOME%\bin