环境: JDK 5.0 + Tomcat 5.5.4
JDK安装路径: D:\Java\jdk1.5.0_01
Tomcat安装路径:D:\Tomcat 5.5
设置环境变量(控制面板-系统-高级):
java_home=D:\Java\jdk1.5.0_01
path=%JAVA_HOME%\bin
classpath=.;D:\Java\jdk1.5.0_01\lib\dt.jar;D:\Java\jdk1.5.0_01\lib\tools.jar;D:\Tomcat 5.5\common\lib\servlet-api.jar;D:\Tomcat 5.5\common\lib\mysql-connector-java-3.1.6-bin.jar;
其中D:\Tomcat 5.5\common\lib\servlet-api.jar为Tomcat的servlet API实现,一定要加上,不如无法编译servlet
D:\Tomcat 5.5\common\lib\mysql-connector-java-3.1.6-bin.jar;是MySQL...[ 查看全文 ]