Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. LauncherHelper.checkAndLoadMain() has thrown a NoClassDefFoundError
    Java Runtime
    192
    112
    10
  2. Class.getMethod() has thrown a NoClassDefFoundError
    Java Runtime
    204
    124
    11

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.ClassNotFoundException: javax.mail.internet.ParseException
4 matching frames hidden
java.lang.NoClassDefFoundError: javax/mail/internet/ParseException
3 matching frames hidden
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)

Solution

ThZois1 year ago

I had to build one fat jar that will include all dependencies from the other jars that i wanted to use.

External results for this pattern (10)

  1. 15738519635via GitHub1 day ago
    org.kohsuke.args4j.CmdLineException
    Show stack trace
  2. org.kohsuke.args4j.CmdLineException
    Show stack trace
  3. thadguidryvia GitHub1 day ago
    org.mortbay.jetty.Server
    Show stack trace
  4. burf2000via GitHub3 days ago
  5. Unknown authorvia Google Groups1 week ago
    com.pi4j.platform.PlatformAlreadyAssignedException
    Show stack trace
  6. Andrei Biketovvia Google Groups1 week ago
    reactivemongo.api.MongoDriver
    Show stack trace
  7. ilarimikkonenvia GitHub2 weeks ago
    com.fasterxml.jackson.core.JsonFactory
    Show stack trace
  8. Inuyashahanvia GitHub1 month ago
    BimServer
    Show stack trace