java.lang.ClassNotFoundException: ...Main.java

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.

  • Getting started with OWL API
    via by Unknown author,
  • Kafka Consumer in Java
    via Stack Overflow by Zerbraxi
    ,
  • Error in spark-submit but not in pyspark
    via Stack Overflow by nanounanue
    ,
  • JMS Connection to Websphere Server
    via Stack Overflow by Jamie Coleman
    ,
  • GitHub comment 3625#126674820
    via GitHub by Dreampie
    ,
    • java.lang.ClassNotFoundException: ...Main.java 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) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

    Users with the same issue

    Unknown visitor1 times, last one,
    rocday
    rocday2 times, last one,
    junior_cEngineer
    junior_cEngineer1 times, last one,
    Matty
    Matty1 times, last one,
    odd
    odd1 times, last one,
    1418 more bugmates