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: org.bouncycastle.jce.provider.BouncyCastleProvider
4 matching frames hidden
java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
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 GitHub16 hours ago
    BimServer
    Show stack trace
  2. 15738519635via GitHub3 days ago
    org.kohsuke.args4j.CmdLineException
    Show stack trace
  3. farooqsheikhpkvia GitHub3 days ago
    org.kohsuke.args4j.CmdLineException
    Show stack trace
  4. thadguidryvia GitHub3 days ago
    org.mortbay.jetty.Server
    Show stack trace
  5. burf2000via GitHub6 days ago
  6. Unknown authorvia Google Groups1 week ago
    com.pi4j.platform.PlatformAlreadyAssignedException
    Show stack trace
  7. Andrei Biketovvia Google Groups1 week ago
    reactivemongo.api.MongoDriver
    Show stack trace
  8. ilarimikkonenvia GitHub2 weeks ago
    com.fasterxml.jackson.core.JsonFactory
    Show stack trace