Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to put servlet.jar

 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic