473,395 Members | 1,383 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,395 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 7012
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.