java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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

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

  • No class def found error in server
    via Stack Overflow by Dheeraj Joshi
    ,
  • ant - build failed
    via by 843834,
  • Ant error on trying to run an taskdef
    via by Jochen Maes,
  • Creating a jar in a maven project using InteliJ
    via Stack Overflow by Val.K
    ,
    • java.lang.NoClassDefFoundError: org/junit/runner/manipulation/Filter at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.junit.vintage.engine.discovery.JUnit4DiscoveryRequestResolver.getAllDiscoverySelectorResolvers(JUnit4DiscoveryRequestResolver.java:58)

    Users with the same issue

    Unknown visitor1 times, last one,
    junior_cEngineer
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    164 more bugmates