Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes where to put servlet.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "where to put servlet.jar" Watch "where to put servlet.jar" New topic
Author

where to put servlet.jar

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
hello sir
i have included the servlet.jar package in the common\lib but it is then also giving the error can u plz rectify me ..........

thanks
gaurav
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
What exactly are you trying to do here?? When you deploy a web application to a web container (a.k.a. the server), the server comes with a copy of the needed J2EE libraries, etc. You certainly don't need to worry about making sure the JAR is there once you compile and package your own app.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Chit Ming Chong
Ranch Hand

Joined: Sep 09, 2004
Posts: 49
may be you want to try -classpath /usr/local/tomcat/common/lib/servlet.jar to compile the code

A better way to do it is to get a book or tutorial on how to do things in servlet and jsp
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where to put servlet.jar
 
Similar Threads
Newbie question
package javax.servlet does not exist
not working
Can't find package javax.servlet.*;
where is servlet package