Originally posted by Antonio Fornie:
Hello. Thank you for your reply.
There are several ways to include jars in an eclipse project. In my case I have all the jars in User Libraries that I've been adding to the project. For some of the jars it works well, but for many others it's like they weren't there until I put them in Tomcat/common/lib
Anyway I tried to put all of them in WEB-INF/lib and it doesn't work either.
Thank you very much. Any other idea?
Antonio
Putting them in WEB-INF/lib is the way to go, but the WEB-INF/lib eclipse uses won't be the that Tomcat's default uses if you launch Tomcat from inside Eclipse (it uses its own working area usually in the User's directory workspace).
The proper way to define dependencies for the eclipse web projects would be to use the Project -> Properties -> Java EE Module Dependencies to define the libraries that get copied to the correct WEB-INF/lib directory (both for running in Eclipse and packing the WAR file). Using Project -> Properties -> Java Build Path only defines the dependencies for compile-time inside the Eclipse platform (and defining which dependencies get copied to an exported JAR file).