Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jcajce/util/JcaJceHelper
Russell Haley <[email protected]>
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <CABx9NuSbMcuSR5y3w53rD5-AtqSoH9nBBkYTpZrnG1sR-Q1D1Q@mail.gmail.com> |
Hi, I'm relatively new to Java so I'm unsure if this is a mistake on my part or not. I have been using the example code to build out a utility that signs files and puts the signature in a ZipEntry comment for validation. At this point I'm just trying to generate a keypair and I'm getting the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jcajce/util/JcaJceHelper at com.telarraydiagnostics.ova.alpha.scripts.BatchScriptManager.exportKeyPair(BatchScriptManager.java:228) at com.telarraydiagnostics.ova.alpha.scripts.BatchScriptManager.doOpts(BatchScriptManager.java:167) at com.telarraydiagnostics.ova.alpha.scripts.BatchScriptManager.main(BatchScriptManager.java:131) Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jcajce.util.JcaJceHelper at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more My function is a copy/paste of the RSAKeyPairGenerator.exportKeyPair function. The troubled code is in RSAKeyPairGenerator.java on line 53. I downloaded the sources for bcpg-jdk15on-159.jar and there doesn't seem to be any jcajce or util folder and no sign of a JcaJceHelper class at all? Any input would be great. Thanks for the wonderful library. I look forward to putting it to great use. Russ