Java Quiz: What Does NoClassDefFoundError mean?
Join the DZone community and get the full member experience.
Join For FreeIt 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.).
This article has more information.
From http://2ality.blogspot.com/2010/11/java-quiz-what-does-noclassdeffounderro.html
Java (programming language)
Interface (computing)
Opinions expressed by DZone contributors are their own.
Trending
-
Auditing Tools for Kubernetes
-
Fun Is the Glue That Makes Everything Stick, Also the OCP
-
JavaFX Goes Mobile
-
Five Java Books Beginners and Professionals Should Read
Comments