install tomcat

S

sibuea

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
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

sibuea said:
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
 
W

William Brogden

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,074
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top