NoClassDefFoundError in Eclipse when adding project in build path

Rightclick your dynamic web project, go to Properties > Deployment Assembly and add the dependent projects there. This way they will end up as JAR in /WEB-INF/lib, exactly there where you want it to be.

Eclipse Project Properties Deployment Assembly

In Eclipse versions older than 3.5 you need to go to Properties > Java EE Module Dependencies.

See also:

Leave a Comment