java.lang.ClassNotFoundException

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.

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 21375#244859058
    via GitHub by chris-martin
    ,
  • GitHub comment 47#134385358
    via GitHub by JoshRosen
    ,
  • Broken on JDK7
    via GitHub by vladimirvivien
    ,
  • Javafx Tutorial 4 Will Not Compile
    via Stack Overflow by mpeterson418
    ,
  • GitHub comment 1#13014886
    via GitHub by cswingler
    ,
    • java.lang.ClassNotFoundException: akka.actor.MissingExtension at java.lang.ClassLoader.findClass(ClassLoader.java:530) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sbt.classpath.ClasspathFilter.loadClass(ClassLoaders.scala:59) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at akka.actor.ReflectiveDynamicAccess$$anonfun$getClassFor$1.apply(ReflectiveDynamicAccess.scala:21) at akka.actor.ReflectiveDynamicAccess$$anonfun$getClassFor$1.apply(ReflectiveDynamicAccess.scala:20) at scala.util.Try$.apply(Try.scala:192) at akka.actor.ReflectiveDynamicAccess.getClassFor(ReflectiveDynamicAccess.scala:20) at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:38) at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1$$anonfun$1.applyOrElse(ActorSystem.scala:769) at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1$$anonfun$1.applyOrElse(ActorSystem.scala:769)

    Users with the same issue

    batwalrus76batwalrus76
    14 times, last one,
    poroszdporoszd
    1 times, last one,
    rprp
    1 times, last one,
    Benj-ADBenj-AD
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1855 more bugmates