Topic: 怎么才能用JDK1.4编译SERVLET |
Print this page |
1.怎么才能用JDK1.4编译SERVLET | Copy to clipboard |
Posted by: chirui Posted on: 2003-03-24 11:11 我想用JDK1.4加上TOMCAT4中的servlet.jar包来编译SERVLET,然后用TOMCAT加载SERVLET,提供SERVLET的练习。 但问题是:我用如下语句导入类库时javac此类时无效: import javax.servlet.*; import javax.servlet.http.*; 我设置的CLASS_PATH为: set class_path=,;d:\j2sdk\lib;d:\j2sdk\tomcat\common\lib 请问问题出在哪呢? |
2.Re:怎么才能用JDK1.4编译SERVLET [Re: chirui] | Copy to clipboard |
Posted by: goodflood Posted on: 2003-03-24 11:16 set classpath=.;d:\j2sdk\lib\tools.jar;d:\j2sdk\tomcat\common\lib\servlet.jar |
3.Re:怎么才能用JDK1.4编译SERVLET [Re: chirui] | Copy to clipboard |
Posted by: flytiger Posted on: 2003-03-25 00:06 you can also try javac -classpath %CLASSPATH%;d:\j2sdk\tomcat\common\lib\servlet.jar testservlet.java BTW, the name of environment varible should be CLASSPATH, not class_path |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |