Over a million developers have joined DZone.

Java Quiz: What Does NoClassDefFoundError mean?

· Java Zone

Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management, brought to you in partnership with Stormpath.

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.

From http://2ality.blogspot.com/2010/11/java-quiz-what-does-noclassdeffounderro.html

The Java Zone is brought to you by Stormpath—offering a complete, pre-built User Management API for building web and mobile applications, and APIs. Download our new whitepaper: "Build Versus Buy: Customer Identity Management for Web and Mobile Applications".

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}