Aliens Aliens - 1 year ago 84
Java Question

Including java libraries to Tomcat inside Eclipse

I am running Eclipse with Tomcat 5.5.

My dynamic web site project includes some JAVA code that needs external jar files. Where should I place those jar files so Apache will not giving me errors such as java.lang.ClassNotFoundException ?

Thanks on this.

Answer Source

Put them in the WEB-INF/lib of your web context, of course.

If there are JDBC driver JARs in your project, you'll need to add those to the Tomcat server /lib for Tomcat 7 and higher. Those should not be in your WEB-INF/lib.

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