Aliens Aliens - 1 month ago 5
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

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.