File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Using BouncyCastle in midlet -- Error in console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Using BouncyCastle in midlet -- Error in console" Watch "Using BouncyCastle in midlet -- Error in console" New topic

Using BouncyCastle in midlet -- Error in console

Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
I use Eclipse 3.2 which has j2me plug in.

Previously i asked about encryption in this forum but not much help, so i decided to use bouncy castle encryption package.

runtime error give me the following error message WHEN i click "send" button in my midlet.

i dont think there is wrong with the code.
Is it project setting error ?
Any idea to fix this NoClassDefFoundError?

its urgent.
pls any1 can help ?

thanks in advance.

From NickyEng
Diploma in Computer Studies
SCJP 1.4
Formula 1 app by Maxis (Playbook)
Ryan Muster

Joined: Nov 11, 2007
Posts: 18
I'm not sure but to me it just looks like that class is missing?
It maybe that you have it in classpath so it works in test but not on cell?
I think you just need to stick that class in the package.

When I work with bouncy I always use it at source level, ie I dont use libs.
Its good but its full of excess stuff, and I pull out as much as I can once its working. I havnt used it on cell, but I think there trimming it down is even more important.

I remember seeing a few article on bcy and cells... probably worth a google.

Good luck...
I agree. Here's the link:
subject: Using BouncyCastle in midlet -- Error in console
It's not a secret anymore!