2
votes

when I run the app on my Samsung Galaxy S duos (didn't test on other devices), it's giving me error/exception

java.lang.NoclassDefFoundError:org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher

but its running fine on emulator.

I have added bouncy castle jar in my libraries.

1
You mean BouncyCastleCN1Lib.cn1lib and not BouncyCastleCN1Lib.jar? Did you do refresh libs after adding it? - Diamond
The file name was something different and not BouncyCastleCN1Lib and it was jar file , i had downloaded it from BouncyCastleCN1Lib website and i refreshed libs after adding it. - Rick

1 Answers

4
votes

Remove the BouncyCastle.jar you downloaded from their website and click this link to download the CN1Lib version supported by Codename one.

Place the file in the lib folder of your project and do refresh libs on your project.