Java quiz: what does NoClassDefFoundError mean?
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 initializer etc.).
has more information.