469,315 Members | 1,802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

Using BouncyCastle J2ME encryption package in j2me midlet

254 100+
I use Eclipse 3.2 which has j2me plug in.

I use bouncycastle encryption package to encrypt a string that is going to SMS out to my company gateway.

It runs well until i click "send" command, the error shown in console which is:
Expand|Select|Wrap|Line Numbers
  1. java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
  2.     at MyApplication$HelpSelector.commandAction(+721)
  3.     at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
  4.     at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
  5.     at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
  6.     at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
  7.     at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
  8.  
Why it says NoClassDefFoundError ?
How to fix this error ?

any1 can help?
please its urgent.

thanks alot..
from
Nick
Oct 25 '07 #1
2 6912
RedSon
5,000 Expert 4TB
I use Eclipse 3.2 which has j2me plug in.

I use bouncycastle encryption package to encrypt a string that is going to SMS out to my company gateway.

It runs well until i click "send" command, the error shown in console which is:
Expand|Select|Wrap|Line Numbers
  1. java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
  2.     at MyApplication$HelpSelector.commandAction(+721)
  3.     at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
  4.     at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
  5.     at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
  6.     at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
  7.     at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
  8.  
Why it says NoClassDefFoundError ?
How to fix this error ?

any1 can help?
please its urgent.

thanks alot..
from
Nick
I think that comes from the class not being on the classpath or some other configuration error with java. Try asking this question in the Java forum to see what it comes up with.
Oct 25 '07 #2
r035198x
13,262 8TB
I use Eclipse 3.2 which has j2me plug in.

I use bouncycastle encryption package to encrypt a string that is going to SMS out to my company gateway.

It runs well until i click "send" command, the error shown in console which is:
Expand|Select|Wrap|Line Numbers
  1. java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
  2.     at MyApplication$HelpSelector.commandAction(+721)
  3.     at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
  4.     at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
  5.     at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
  6.     at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
  7.     at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
  8.  
Why it says NoClassDefFoundError ?
How to fix this error ?

any1 can help?
please its urgent.

thanks alot..
from
Nick
If bouncycastle package is a .jar then you need to add it to your project's build path.
Nov 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by gilgantic | last post: by
reply views Thread by j2me | last post: by
reply views Thread by Jens Christian Larsen | last post: by
reply views Thread by gilgantic | last post: by
5 posts views Thread by rpradeepa | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.