This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "where to put servlet.jar" Watch "where to put servlet.jar" New topic

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 ..........

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.

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:
subject: where to put servlet.jar
It's not a secret anymore!