FaqJ2MEBouncycastle
How do I add http://www.bouncycastle.org/ BouncyCastle crypto libraries to my Java ME project?
In order to use http://www.bouncycastle.org/ BouncyCastle crypto libraries you have to add cldcclasses.zip and/or cldccrypto.zip to your project using Project settings | Libraries and Resources | Add jar. The zip files are part of lcrypto-j2me-(version).zip:
lcrypto-j2me-(version)/zips/cldc_classes.zip
lcrypto-j2me-(version)/zips/cldc_crypto.zip
Also make sure you have installed the latest updates of NetBeans Mobility from the update center - Tools | Update Center.