Hi,
I just installed tomcat 4.1
When I tried to compile a servlet, there was an error like
javax.servlet.http not exist.
I think it's probably because I haven't setup the classpath.
Do you know how to set it up?
Thanks
RS
Arne Vajhøj - 28 Aug 2006 23:43 GMT
> I just installed tomcat 4.1
> When I tried to compile a servlet, there was an error like
> javax.servlet.http not exist.
> I think it's probably because I haven't setup the classpath.
>
> Do you know how to set it up?
(assuming Windows)
Have a JDK (not a JRE) installed.
Have JDK bin dir in PATH.
Take the ZIP not the installer.
Unzip in a dir with no spaces ind.
And run.bat should start Tomcat.
Arne
William Brogden - 29 Aug 2006 21:13 GMT
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks
> RS
In order to compile servlets you must include the servlet.jar
library on your classpath. In Tomcat 4.1 it is in the
TOMCAT_HOME/common/lib directory
Tomcat 5 calls this file servlet-api.jar
Bill