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.

  • Request a tutorial
    via GitHub by Hesam-Naderi-Dehkordi
    ,
  • CIPRES problem
    via by Unknown author,
  • IntelliJ Error
    via by Unknown author,
  • JavaFx Video Chat - Libjitsi
    via Stack Overflow by Teamir Gassese
    ,
    • java.lang.NoClassDefFoundError: org/scijava
    • ativelib/JniExtractor at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.newsclub.net.unix.NativeUnixSocket.<clinit>(NativeUnixSocket.java:35) at org.newsclub.net.unix.AFUNIXServerSocket.<init>(AFUNIXServerSocket.java:51) at org.newsclub.net.unix.AFUNIXServerSocket.newInstance(AFUNIXServerSocket.java:63) at org.newsclub.net.unix.demo.SimpleTestServer.main(SimpleTestServer.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: java.lang.ClassNotFoundException: org.scijava.nativelib.JniExtractor at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 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) ... 11 more

    Users with the same issue

    Unknown visitor2 times, last one,
    jf-ast
    1 times, last one,
    Unknown visitor1 times, last one,
    serious2monkeys
    1 times, last one,
    Unknown visitor1 times, last one,
    1447 more bugmates