下载并安装JDK和Tomcat程序
进入我的电脑->属性->高级->环境变量->系统变量,按照以下环境变量配置
 
CATALINA_BASE=C:\Program Files\Apache Software Foundation\Tomcat 6.0
CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 6.0
classpath=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;
JAVA_HOME=c:\jdk1.6
path=%JAVA_HOME%\bin