File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put jar files?

 
michael yue
Ranch Hand
Posts: 204
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where am I supposed to put all the jar files in tomcat? I can run similar code in standalone mode but when put in tomcat server it did not work.
Should I also restart the server?
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends. App-specific jars should go in the app's WEB-INF/lib. Jars Shared between all apps should go in $CATALINA_HOME/shared/lib. Jars shared between all app and Tomcat itself should go in $CATALINA_HOME/common/lib.
And yes, when you change jars you must restart the app or server as appropriate (though Tomcat 5 is pretty good about doing it on its own when it detects the change and auto-reload is enabled).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic