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.Authenticator
4 matching frames hidden
java.lang.NoClassDefFoundError: javax/mail/Authenticator
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. Inuyashahanvia GitHub2 days ago
    BimServer
    Show stack trace
  2. 15738519635via GitHub5 days ago
    org.kohsuke.args4j.CmdLineException
    Show stack trace
  3. farooqsheikhpkvia GitHub5 days ago
    org.kohsuke.args4j.CmdLineException
    Show stack trace
  4. thadguidryvia GitHub5 days ago
    org.mortbay.jetty.Server
    Show stack trace
  5. burf2000via GitHub1 week ago
  6. Unknown authorvia Google Groups2 weeks ago
    com.pi4j.platform.PlatformAlreadyAssignedException
    Show stack trace
  7. Andrei Biketovvia Google Groups2 weeks ago
    reactivemongo.api.MongoDriver
    Show stack trace
  8. ilarimikkonenvia GitHub2 weeks ago
    com.fasterxml.jackson.core.JsonFactory
    Show stack trace