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.

  • GitHub comment 246#236814753
    via GitHub by Shazgul
    ,
  • GitHub comment 246#236512033
    via GitHub by Shazgul
    ,
  • Crash when leveling up
    via GitHub by giubil
    ,
  • Trouble launching on Ubuntu
    via GitHub by ProvingWrong
    ,
  • Failure running JavaFX 2.2 using Maven
    via Stack Overflow by Sandah Aung
    ,
  • GitHub comment 50#74736262
    via GitHub by sm0svx
    ,
  • GitHub comment 8#145280120
    via GitHub by asherbar
    ,
    • java.lang.NoClassDefFoundError: javafx/application/Application 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 dekk.pw.pokemate.PokeMate.<init>(PokeMate.java:74) at dekk.pw.pokemate.PokeMate.main(PokeMate.java:97) Caused by: java.lang.ClassNotFoundException: javafx.application.Application 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) ... 14 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    arturgajowyarturgajowy
    1 times, last one,
    olle.hallinolle.hallin
    2 times, last one,
    batwalrus76batwalrus76
    3 times, last one,
    rsprangemeijerrsprangemeijer
    1 times, last one,
    1499 more bugmates