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

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

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

tip

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

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

  • Unable to run.
    via jsystemtest by ilialin
    ,
  • Tomcat not working
    via by Unknown author,
  • Tomcat 5.5 + Fedora
    via by Unknown author,
    • java.lang.NoClassDefFoundError: jsystem.framework.sut.SutImpl at java.lang.Class.initializeClass(libgcj.so.7) at java.lang.Class.forName(libgcj.so.7) at java.lang.Class.forName(libgcj.so.7) at jsystem.framework.sut.SutFactory.getSutInstance(SutFactory.java:56) at jsystem.extensions.report.html.summary.HtmlSummaryReporter.<init>(HtmlSummaryReporter.java:76) at jsystem.extensions.report.html.HtmlTestReporter.init(HtmlTestReporter.java:69) at jsystem.extensions.report.html.HtmlTestReporter.<init>(HtmlTestReporter.java:57) at java.lang.Class.newInstance(libgcj.so.7) at jsystem.framework.report.ListenerstManager.loadReporter(ListenerstManager.java:141) at jsystem.framework.report.ListenerstManager.<init>(ListenerstManager.java:82) at jsystem.framework.report.ListenerstManager.getInstance(ListenerstManager.java:59) at junit.framework.SystemTestCase.<clinit>(SystemTestCase.java:64) at java.lang.Class.initializeClass(libgcj.so.7) at java.lang.Class.initializeClass(libgcj.so.7) at java.lang.Class.isAssignableFrom(libgcj.so.7) at junit.framework.TestSuite.<init>(TestSuite.java:72) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTestRunner.java:399) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:345) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:198) Caused by: java.lang.ClassNotFoundException: org.apache.xpath.objects.XObject not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/ilia/aqua/runner/lib/java2html.jar,file:/home/ilia/aqua/runner/lib/jcommon-1.0.0-rc1.jar,file:/home/ilia/aqua/runner/lib/jfreechart-1.0.0-rc1.jar,file:/home/ilia/aqua/runner/lib/jsystem.jar,file:/home/ilia/aqua/runner/lib/junit.jar,file:/home/ilia/aqua/tests/classes/,file:/usr/share/eclipse/plugins/org.eclipse.jdt.junit_3.1.1/junitsupport.jar,file:/usr/share/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.1.0/junitruntime.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.7) at java.lang.ClassLoader.loadClass(libgcj.so.7) at java.lang.ClassLoader.loadClass(libgcj.so.7) at java.lang.Class.forName(libgcj.so.7) at java.lang.Class.initializeClass(libgcj.so.7)

    Users with the same issue

    Unknown UserUnknown User
    14 times, last one,
    batwalrus76batwalrus76
    1 times, last one,
    musketyrmusketyr
    3 times, last one,
    MattyMatty
    1 times, last one,
    marcbouvierdavmarcbouvierdav
    364 times, last one,
    1418 more bugmates