How to include the necessary .jar libraries with my servlets?

Posted on 2002-06-19
Last Modified: 2010-05-18
The servlet I'm writting needs to use some .jar libraries. How do I include these .jar files - using tomcat 4.0 as my web server?
Question by:tomboman
  • 2

Accepted Solution

kotan earned 50 total points
ID: 7092028
Simply place your jar files to {yourwebapps}\WEB-INF\lib\


Expert Comment

ID: 7092038
Or put under {tomcat}\lib\ for every web applications.

Remmember to restart tomcat server after adding jar files.

Author Comment

ID: 7092288
thanks kotan, first answer works, but not the second one I think.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (  It addresses one of the most common problems that plague beginning PHP develop…
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now