473,376 Members | 1,203 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,376 software developers and data experts.

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 7007
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

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

Similar topics

7
by: gilgantic | last post by:
How do you navigate between screens in J2ME? I would like to navigate to the next screen using the default emulator in KToolbar. Here is a snippit of my commandAction method: public void...
0
by: j2me | last post by:
hello j2me Just build a homepage of J2ME http://www.geocities.com/helloj2me/ Currently, there are only two very simple MIDlet exercise, will try more soon. You are welcome to visit.
0
by: Jens Christian Larsen | last post by:
I have downloaded and installed the MIDP and CLDC reference implementations from java.sun.com but I can't seem to get them to work properly on Windows. When I start one of the example MIDlets in...
0
by: gilgantic | last post by:
I get an "Invalid file" in my MIDlet when I tried to read a .txt file, using Connection.open(). My phone is a Nokia 3595 with mMode technology by AT&T. Here is my source code in my MIDlet: try...
1
by: namratapatil | last post by:
Hi...i am trying to load an image that has been saved at the following path: C:\WTK22\apps\MyProject\res After exectuing the program, the NullPointerException is thrown...Kindly let me know how to...
4
by: nickyeng | last post by:
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...
5
by: rpradeepa | last post by:
Hi, im getting this type of error in midlet program package javax.microedition.midlet does not exist package javax.microedition.io doaes not exist Welcomeform.java:4: package...
0
by: simsimlhr | last post by:
I want to load form inherited from Midlet(j2me) in lwuit form.Is there any way, i cannot convert the midlet into lwuit.
0
by: NitinSawant | last post by:
Hello, I'm working with Netbeans Mobility Pack (Sun java wireless toolkit 2.5), I've created small midlet, I'm adding "MYID" custom property(Attribute) to the midlet, I know...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.