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.

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.


Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all


This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 {file location}"

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Spring application build failure
    via Stack Overflow by Sasuke Uchiha
  • GitHub comment 227#264614643
    via GitHub by eyedol
    • java.lang.NoClassDefFoundError: com/sun/source/util/TaskListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at at$100( at$ at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at org.eclipse.jdt.apt.core.internal.AnnotationProcessorFactoryLoader.loadJava6FactoryClasses( at org.eclipse.jdt.apt.core.internal.AnnotationProcessorFactoryLoader.loadFactories( at org.eclipse.jdt.apt.core.internal.AnnotationProcessorFactoryLoader.getJava6FactoriesAndAttributesForProject( at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations( at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations( at org.eclipse.jdt.internal.compiler.Compiler.compile( at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile( at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile( at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile( at at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll( at at$ at at at at$ at at at at at at at Caused by: java.lang.ClassNotFoundException: com.sun.source.util.TaskListener at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 35 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Andreas Häber
    3 times, last one,
    1 times, last one,
    10 times, last one,
    1499 more bugmates