Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ClassLoader.loadClass() has thrown a NoClassDefFoundError
    Java Runtime
    66
    7
    11
  2. Incompatible dependency version or class not found in classpath
    Java Runtime
    546
    231
    260

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.NoClassDefFoundError: Animal (wrong name: p kga/Animal)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
8 frames hidden

Solution

rafael1 year ago

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

Check the source of this solution for more info

External results for this pattern (10)

  1. lbndevvia GitHub1 day ago
    com/sun/xml/bind/api/ErrorListener
    Show stack trace
  2. 10by10pixelvia GitHub2 days ago
    NEATFlappyBird (wrong name: fr/neatmonster/labs/NEATFlappyBird)
    Show stack trace
  3. Nicolas Parisvia Google Groups2 days ago
    shared/SharedObjectFactory
    Show stack trace
  4. Diana Magdivia Google Groups2 days ago
    >> shared/SharedObjectFactory >>
    Show stack trace
  5. Mustafa Aktanvia Google Groups3 days ago
  6. dmvolodvia GitHub3 days ago
    java.lang.reflect.InvocationTargetException --
    Show stack trace
  7. dejon97via GitHub5 days ago
    org/apache/lucene/index/FilterAtomicReader$Filte rTerms
    Show stack trace
  8. dr3342via Oracle Community5 days ago
    oracle/security/jps/service/policystore/xds/FunctionPermission \\
    Show stack trace
  9. wholdervia Google Groups1 week ago
    No message found for this stack trace.
    Show stack trace