Published at DZone with permission of Axel Rauschmayer, author and DZone MVB.
It took me a while to figure this out: NoClassDefFoundError is not the same as ClassNotFoundException.
- ClassNotFoundException: The given class could not be found.
- NoClassDefFoundError: The given class could
be found, but something went wrong when initializing it (an interface
it implemented could not be found, something went wrong in a static
This article has more information.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)