java.lang.ClassNotFoundException

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 122#231471160
    via GitHub by colinzhang
    ,
  • base line indexing failed
    via by 35b226e3-8665-40a4-8109-02d683bd2280,
  • GitHub comment 530#158136309
    via GitHub by gulbinas
    ,
  • 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: com.getsentry.raven.jul.SentryHandler 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 java.util.logging.LogManager$5.run(LogManager.java:965) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:958) at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1578) at java.util.logging.LogManager.access$1500(LogManager.java:145) at java.util.logging.LogManager$RootLogger.accessCheckedHandlers(LogManager.java:1667) at java.util.logging.Logger.getHandlers(Logger.java:1776) at com.google.appengine.tools.development.DevAppServerImpl.initializeLogging(DevAppServerImpl.java:516) at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:228) at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47) at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213) at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211) at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:225) at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:216) 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:144)

    Users with the same issue

    odd
    1 times, last one,
    tvrmsmith
    2 times, last one,
    Andreas Häber
    3 times, last one,
    Unknown visitor1 times, last one,
    rocday
    2 times, last one,
    1418 more bugmates