How to use bouncy lock API in J2ME using eclipse?

I am trying to import and use the Bouncy Lock API to encrypt and decrypt an MP3 file in J2ME using Eclipse.

Although I import cldc_sources.zip and CLDC_crypto.zip, I get a NoClassDeffoundError . Has anyone had success with importing and using this API? Could you give me the steps to do this from the very beginning in the Eclipse IDE?

Thanks in advance.

+4
source share
3 answers

It was easier and easier for me to simply unzip the source code of the BouncyCastle into the source tree when working with J2ME. You can either include only those classes you want, or leave it in Proguard to optimize them.

+1
source

There is a useful blog article about this topic: http://tirl.org/blogs/media-lab-blog/46/

Maybe worth a try.

0
source

I had this problem and solved it thanks to this thread on Nokia Developer: http://www.developer.nokia.com/Community/Discussion/showthread.php?236244-moved-Series-40-Development-using-Eclipse -Pulsar-and-BouncyCastle It says that you need to change the extension from the archive by renaming it: .jar instead of .zip

0
source

Source: https://habr.com/ru/post/1339779/


All Articles