Tomcat comes with servlet.jar, which has all the classes you need. Or you can download a copy from Sun Microsystems as well. Just point your compiler to the servlet.jar or add it to the classpath.
If you unpack the servlet.jar with winzip you'll see what I mean. Plus I think it is javax.servlet, not java.servlet.

Patrick Martz wrote:
Ok this is exactly my problem. These aren't MY jar files. These are jar
files that came with Tomcat. Apparently, the standard J2SDK does NOT come
with the servlet classes that I need to compile java servlets. So therefore,
when I try to import java.servlet.* it fails miserably. Even the classes
that come WITH Tomcat itself (for example, HelloWorldExample in the examples
directory) are not compilable. Therefore, clearly, something needs to be
done so that the java compiler can find these packages. Exactly what that is
I do not know and would be very appreciative if anyone could help!
-----Original Message-----
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:41 PM
To: Tomcat Users List
Subject: Re: Tomcat setup question.






So do I need to add an environmental variable to let my compiler find
these?

Or do I just need to move the .jar files to the right location? How do I
know which .jar files are the correct ones to use (as I mentioned, there
are

a number of them that seem to have what I'm looking for)?

You can do any of the steps you have suggested yourself or you could also just tell the compiler where to find your jars. javac -classpath would do the trick


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to