Pattern selector

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

  1. ClassLoader.defineClass() has thrown a NoClassDefFoundError
    Java Runtime
    408
    168
    203
  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: Test (wrong name: com/foo/bar/Test)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

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. prsalazarvia GitHub3 days ago
    org/mapdb/elsa/ElsaSerializerBase$Ser
    Show stack trace
  2. AM-DNEGELvia GitHub4 days ago
    org/apache/spark/Logging
    Show stack trace
  3. lbndevvia GitHub5 days ago
    com/sun/xml/bind/api/ErrorListener
    Show stack trace
  4. 10by10pixelvia GitHub6 days ago
    NEATFlappyBird (wrong name: fr/neatmonster/labs/NEATFlappyBird)
    Show stack trace
  5. Nicolas Parisvia Google Groups1 week ago
    shared/SharedObjectFactory
    Show stack trace
  6. Diana Magdivia Google Groups1 week ago
    >> shared/SharedObjectFactory >>
    Show stack trace
  7. Mustafa Aktanvia Google Groups1 week ago
  8. dmvolodvia GitHub1 week ago
    java.lang.reflect.InvocationTargetException --
    Show stack trace
  9. dejon97via GitHub1 week ago
    org/apache/lucene/index/FilterAtomicReader$Filte rTerms
    Show stack trace
  10. dr3342via Oracle Community1 week ago
    oracle/security/jps/service/policystore/xds/FunctionPermission \\
    Show stack trace