ferz ferz - 1 year ago 146
Java Question

How can I add JAR files to the web-inf/lib folder in Eclipse?

I'm using Eclipse and I need to be able to add Java libraries (JAR files) into my web application's web-inf/lib folder. How do I achieve this?

Answer Source
  • Add the jar file to your WEB-INF/lib folder.
  • Right-click your project in Eclipse, and go to "Build Path > Configure Build Path"
  • Add the "Web App Libraries" library

This will ensure all WEB-INF/lib jars are included on the classpath.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download