Java quiz: what does NoClassDefFoundError mean?

[2010-11-17] dev, java
(Ad, please don’t block)

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.).
This article has more information.

Most popular (last 30 days)

Loading...