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.

  • Too many dependencies?
    via GitHub by nunobrito
    ,
  • akka simple example can not run
    via Stack Overflow by guotong1988
    ,
  • Spring AOP / Java / Sql.ru
    via by Unknown author,
    • java.lang.NoClassDefFoundError: com/graphbuilder/curve/Point at java.lang.Class.getDeclaredConstructors0(Native Method)[?:1.8.0_72] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)[?:1.8.0_72] at java.lang.Class.getConstructor0(Class.java:3075)[?:1.8.0_72] at java.lang.Class.getDeclaredConstructor(Class.java:2178)[?:1.8.0_72] at org.apache.poi.xdgf.util.ObjectFactory.put(ObjectFactory.java:34)[?:?] at org.apache.poi.xdgf.usermodel.section.geometry.GeometryRowFactory.<init>(GeometryRowFactory.java:39)[?:?] at org.apache.poi.xdgf.usermodel.section.GeometrySection.<init>(GeometrySection.java:55)[?:?] at org.apache.poi.xdgf.usermodel.XDGFSheet.<init>(XDGFSheet.java:77)[?:?] at org.apache.poi.xdgf.usermodel.XDGFShape.<init>(XDGFShape.java:113)[?:?] at org.apache.poi.xdgf.usermodel.XDGFShape.<init>(XDGFShape.java:107)[?:?] at org.apache.poi.xdgf.usermodel.XDGFBaseContents.onDocumentRead(XDGFBaseContents.java:82)[?:?] at org.apache.poi.xdgf.usermodel.XDGFMasterContents.onDocumentRead(XDGFMasterContents.java:66)[?:?] at org.apache.poi.xdgf.usermodel.XDGFMasters.onDocumentRead(XDGFMasters.java:101)[?:?] at org.apache.poi.xdgf.usermodel.XmlVisioDocument.onDocumentRead(XmlVisioDocument.java:106)[?:?] at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:190)[?:?] at org.apache.poi.xdgf.usermodel.XmlVisioDocument.<init>(XmlVisioDocument.java:79)[?:?] at org.apache.poi.xdgf.extractor.XDGFVisioExtractor.<init>(XDGFVisioExtractor.java:41)[?:?] at org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:207)[?:?] at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:86)[?:?] at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87)[?:?] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)[?:?] at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)[?:?] at org.apache.tika.parser.DelegatingParser.parse(DelegatingParser.java:72)[?:?] at org.apache.tika.extractor.ParsingEmbeddedDocumentExtractor.parseEmbedded(ParsingEmbeddedDocumentExtractor.java:102)[?:?] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEmbeddedFile(AbstractOOXMLExtractor.java:311)[?:?] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEmbeddedParts(AbstractOOXMLExtractor.java:202)[?:?] at org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.getXHTML(AbstractOOXMLExtractor.java:115)[?:?] at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:112)[?:?] at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87)[?:?] at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)[?:?] at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)[?:?] at org.apache.tika.Tika.parseToString(Tika.java:568)[?:?] at org.elasticsearch.ingest.attachment.TikaImpl$1.run(TikaImpl.java:94)[?:?] at org.elasticsearch.ingest.attachment.TikaImpl$1.run(TikaImpl.java:91)[?:?] at java.security.AccessController.doPrivileged(Native Method)[?:1.8.0_72] at org.elasticsearch.ingest.attachment.TikaImpl.parse(TikaImpl.java:91)[?:?] at org.elasticsearch.ingest.attachment.AttachmentProcessor.execute(AttachmentProcessor.java:72)[?:?] at org.elasticsearch.ingest.CompoundProcessor.execute(CompoundProcessor.java:100)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.ingest.Pipeline.execute(Pipeline.java:58)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.ingest.PipelineExecutionService.innerExecute(PipelineExecutionService.java:166)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.ingest.PipelineExecutionService.access$000(PipelineExecutionService.java:41)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.ingest.PipelineExecutionService$1.doRun(PipelineExecutionService.java:65)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-5.1.1.jar:5.1.1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_72] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_72] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_72] Caused by: java.lang.ClassNotFoundException: com.graphbuilder.curve.Point at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[?:1.8.0_72] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[?:1.8.0_72] at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)[?:1.8.0_72] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[?:1.8.0_72] ... 47 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    andyglickandyglick
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1427 more bugmates