RE: [Eclipseme-users] Error using Bouncy Castle
Brought to you by:
setera
From: Hunter, K. <kh...@ne...> - 2006-02-21 13:56:08
|
The BouncyCastle mention in the EclipseME help has to do with advanced key management for signing of MIDlets, not for using encryption within a MIDlet. Basically, what is probably happening is that you are compiling against the JAR file with the BouncyCastle classes in it, but the classes are not getting included in the MIDlet jar file as part of the build, and so when the emulator (or device) goes to try to access the classes, they aren't there. What you need to do is to have the contents of the JAR file included in the build. =20 Read http://eclipseme.org/docs/advJarFiles.html =20 What you're dealing with is an "application JAR", since it isn't built into the hardware. =20 Kevin Hunter ________________________________ From: ecl...@li... [mailto:ecl...@li...] On Behalf Of Fabiano Oliveira Sent: Monday, February 20, 2006 8:14 PM To: ecl...@li... Subject: [Eclipseme-users] Error using Bouncy Castle Hi. I'm developing an Midlet that deals with cryptography, so, looking pro an cryptography API for J2ME I found the Bouncy Castle's lightwheight cypto API. I've downloaded it, put the zip file in the project's build path, create the encryption class... everything was normal. But when I run the Midlet, during the loading, before the application starts, I get an NoClassDefFoundError. The class that the exception refers is part of the crypto API, CryptoException, for example, but that is not the only one. If I change the source code, the class that throws de exception changes too. It seems the VM can't find the classes, but they are right there where the error's path points. I looked in many foruns for any help, but it was quite useless. I don't know what else to do.=20 =20 By the way, in eclipseME help, it says something about BouncyCastle int the signing the application. I need to set something there? =20 Regards Fabiano |