java.lang.NoClassDefFoundError: xx

google.com | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    xx

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.net.URLClassLoader$1.run(Unknown Source)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(Unknown Source)
    5. java.lang.ClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    6 frames
  3. Unknown
    mod_Trivia.<init>
    1. mod_Trivia.<init>(mod_Trivia.java:16)
    1 frame
  4. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    5. java.lang.Class.newInstance0(Unknown Source)
    6. java.lang.Class.newInstance(Unknown Source)
    6 frames
  5. Unknown
    bgy.<clinit>
    1. ModLoader.addMod(ModLoader.java:343)
    2. ModLoader.readFromClassPath(ModLoader.java:1103)
    3. ModLoader.init(ModLoader.java:736)
    4. ModLoader.addAllRenderers(ModLoader.java:205)
    5. bgy.<init>(RenderManager.java:97)
    6. bgy.<clinit>(RenderManager.java:14)
    6 frames
  6. MC Client
    Minecraft.a
    1. net.minecraft.client.Minecraft.a(SourceFile:261)
    1 frame
  7. Unknown
    avv.a
    1. avv.a(SourceFile:56)
    1 frame
  8. MC Client
    Minecraft.run
    1. net.minecraft.client.Minecraft.run(SourceFile:507)
    1 frame
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame