java.lang.NoClassDefFoundError

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.

  • Error start up tinapos
    via openbravopos by nobody
    ,
  • no encuentra clase net.adrianromero...
    via openbravopos by mandinga
    ,
  • Tomcat not working
    via by Unknown author,
    • java.lang.NoClassDefFoundError: net.adrianromero.tpv.scale.DeviceScale at java.lang.Class.initializeClass(libgcj.so.7) at net.adrianromero.tpv.forms.JFrmTPV.startTPV(Unknown Source) at net.adrianromero.tpv.forms.JFrmTPV.access$300(Unknown Source) at net.adrianromero.tpv.forms.JFrmTPV$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(libgcj.so.7) at java.awt.EventQueue.dispatchEvent(libgcj.so.7) at java.awt.EventDispatchThread.run(libgcj.so.7) Caused by: java.lang.ClassNotFoundException: gnu.io.SerialPortEventListener not found in gnu.gcj.runtime.SystemClassLoader\{urls=\[file:tinapos.jar,file:l2fprod-common-tasks.jar,file:jasperreports-1.2.0.jar,file:jcommon-1.0.0.jar,file:jfreechart-1.0.0.jar,file:jdt-compiler-3.1.1.jar,file:commons-beanutils-1.5.jar,file:commons-collections-2.1.jar,file:commons-digester-1.7.jar,file:itext-1.3.1.jar,file:poi-2.0-final-20040126.jar,file:velocity-1.4.jar,file:bsh-core-2.0b4.jar,file:axis.jar,file:jaxrpc.jar,file:saaj.jar,file:commons-discovery-0.2.jar,file:commons-logging-1.0.4.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.VMClassLoader.defineClass(libgcj.so.7) at java.lang.ClassLoader.defineClass(libgcj.so.7) at java.security.SecureClassLoader.defineClass(libgcj.so.7) 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

    marcbouvierdav
    364 times, last one,
    Matty
    1 times, last one,
    odd
    1 times, last one,
    tvrmsmith
    2 times, last one,
    Andreas Häber
    3 times, last one,
    1418 more bugmates