java.lang.NoClassDefFoundError

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.

  • Problems running with package name used
    via by Angus Comber,
  • Problems running with package name used
    via by Angus Comber,
  • running first java program
    via by Davinderpro java,
  • java.lang.OutOfMemoryError: Java heap space
    via by Andrew Geroge Alexander,
  • java.lang.OutOfMemoryError: Java heap space
    via by Bruno Candido Volpato da Cunha,
  • Trouble building a new clone
    via GitHub by Alchus
    ,
  • Replacing data using java
    via Stack Overflow by user2918968
    ,
    • java.lang.NoClassDefFoundError: classes\com\example\web\test_props (wrong name: com/example/web/test_props) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    150 more bugmates