Patrick Martz wrote:
Thank you for the help. However, I tried that...I added the directory where
servlet.jar is located to the classpath. Once I do that, it no longer
recognizes ANY of the other classes in its own directory, and therefore
cannot make any references to them. I am frankly stumped....and I apologize
for my ignorance but this is all very new to me.
-----Original Message-----
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat setup question.
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. Sotherefore,when I try to import java.servlet.* it fails miserably. Even the classes that come WITH Tomcat itself (for example, HelloWorldExample in theexamplesdirectory) are not compilable. Therefore, clearly, something needs to be done so that the java compiler can find these packages. Exactly what thatisI 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 findthese?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, therearea 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]> -- 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]>