jQuery in Action, 3rd edition
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: where to put servlet.jar
It's not a secret anymore!