ClassLoader.loadClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
Javadoc
Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.

The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found. @author unascribed @since JDK1.0

at java.lang.ClassLoader.defineClass1
(source)
at java.lang.ClassLoader.defineClassCond
at java.lang.ClassLoader.defineClass
(source)
at java.security.SecureClassLoader.defineClass
(source)
at java.net.URLClassLoader.defineClass
(source)
at java.net.URLClassLoader.access$000
at java.net.URLClassLoader$1.run
at java.security.AccessController.doPrivileged
(source)
at java.net.URLClassLoader.findClass
(source)
at java.lang.ClassLoader.loadClass
(source)
at sun.misc.Launcher$AppClassLoader.loadClass
(source)
at java.lang.ClassLoader.loadClass
(source)
11 frames hidden

Typical Exception Messages

  1. com/facebook/fb303/FacebookService$Iface
  2. scala/runtime/AbstractFunction1$mcZL$sp
  3. org/apache/hadoop/service/CompositeService
  4. org/w3c/dom/ElementTraversal
  5. test (wrong name: Test)
  6. ClientApp (wrong name: com/myapp/client/ClientApp)
  7. HelloWorld (wrong name: org/xuwei/HelloWorld)
  8. com/sun/xml/ws/spi/ProviderImpl
  9. hudson/Main (wrong name: Main)
  10. org/osgi/framework/ServiceException

Origin

Launcher$AppClassLoader.loadClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
10 frames hidden
sun.misc.Launcher$AppClassLoader.loadClass
140Web pages

Specific cases

External results for this pattern (139)

  1. zhanglei-1987via GitHub3 months ago
    javax/net/ssl/ExtendedSSLSession
    Show stack trace
  2. Unknown authorvia izpack.org5 months ago
    com/izforge/izpack/panels/htmlinfo/HTMLInfoPanel
    Show stack trace
  3. hourbackvia Stack Overflow5 months ago
    Example (wrong name: org/openqa/selenium/example/Example)
    Show stack trace
  4. thinkBigvia Stack Overflow5 months ago
    ClientREST (wrong name: clientrest/ClientREST)
    Show stack trace
  5. Unknown authorvia codeproject.com5 months ago
    MSWord (wrong name: o rg/jinterop/dcom/test/MSWord)
    Show stack trace
  6. MAXvia Stack Overflow5 months ago
  7. Unknown authorvia codeproject.com5 months ago
    GreetingTestClient (w rong name: tutorial/hanbo/webservice/GreetingTestClient)
    Show stack trace