java.lang.NoClassDefFoundError

org/eclipse/swt/custom/StyledText

Samebug tips4

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.


rafaelrafael

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web5129

  • via GitHub by superr
    ,
  • via Unknown by Andy Wilkinson,
  • Stack trace

    • java.lang.NoClassDefFoundError: org/eclipse/swt/custom/StyledText at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.createBuilder(PluginBuilder.java:149) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:119) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:888) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:828) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:820) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:449) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:197) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:209) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:492) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:246) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:171) at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:82) at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:64) at gui.Main.main(Main.java:21) Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.custom.StyledText 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) ... 17 more

    Write tip

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

    Users with the same issue

    marcbouvierdavmarcbouvierdav
    364 times, last one
    Unknown visitor
    Unknown visitorOnce,
    batwalrus76batwalrus76
    5 times, last one
    tomthomastomthomas
    Once,
    jpveejpvee
    4 times, last one
    1519 more bugmates