473,978 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using BouncyCastle in midlet -- Error in console

254 Contributor
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.

Expand|Select|Wrap|Line Numbers
  1. java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
  2.     at MEMerchantInterface$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.  
  9.  
i dont think there is wrong with the code.
Is it project setting error ?
Any idea to fix this NoClassDefFound Error?

its urgent.
pls any1 can help ?

thanks in advance.
from
Nick
Oct 25 '07 #1
4 2187
r035198x
13,262 MVP
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.

Expand|Select|Wrap|Line Numbers
  1. java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
  2.     at MEMerchantInterface$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.  
  9.  
i dont think there is wrong with the code.
Is it project setting error ?
Any idea to fix this NoClassDefFound Error?

its urgent.
pls any1 can help ?

thanks in advance.
from
Nick
The JVM cannot find the class PBEParametersGe nerator class. If it's in a package make sure you include that package in your project's buid/classpath.
Oct 25 '07 #2
nickyeng
254 Contributor
The JVM cannot find the class PBEParametersGe nerator class. If it's in a package make sure you include that package in your project's buid/classpath.
what is the standard size for j2me midlet in phone ?
around kb or mb ?

thanks for the info.
i will try it.
Oct 25 '07 #3
r035198x
13,262 MVP
what is the standard size for j2me midlet in phone ?
around kb or mb ?

thanks for the info.
i will try it.
Obviously depends on the application itself.
Most applications/games are less than 2mb. You can write a lot of useful midlets that are less than 500kb.
Oct 25 '07 #4
JosAH
11,448 Recognized Expert MVP
I use Eclipse 3.2 which has j2me plug in.

Previously i asked about encryption in this forum but not much help
? I was replying to you and asked you a relevant question in return but you
haven't answered since:

http://www.thescripts. com/forum/thread726916.ht ml

kind regards,

Jos
Oct 25 '07 #5

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

Similar topics

0
1570
by: shmoove | last post by:
Hi all, I'm a J2ME developer, with very little experience in WAP. I want to know if the following is possible on Nokia terminals: I would like to have a link in a WML page, that when it is pressed it should check if the phone has a certain MIDlet installed, and if so the MIDlet is launched. If the MIDlet is not installed then an alternate action is taken. Basically I would like to have a "link" to a MIDlet, that would just run the MIDlet...
0
1725
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 the MIDP dir from the command line, it starts up and displays a list of midlets. However, when I select one of the midlets I get the error: C:\j2me\j2me_midp-2.0\example>midp -descriptor games.jad Unable to create MIDlet...
0
2530
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 { // Open File text file String filename = "http://www.someurl.com/File.txt"; HttpConnection connection = (HttpConnection)Connector.open(filename);
6
2567
by: nickyeng | last post by:
i have a midlet which will generate a string (message ) and send to our gateway. but before sending, i will need to encrypt the string. i've checked anywhere in internet but couldn't find j2me API about encryption. what is the simple way to encrypt that string in midlet ? anyone idea?
1
1836
by: nickyeng | last post by:
i have a midlet which will generate a string (message ) and send to our gateway. but before sending, i will need to encrypt the string. i've checked anywhere in internet but couldn't find j2me API about encryption. what is the simple way to encrypt that string in midlet ? anyone idea?
2
7038
by: nickyeng | last post by:
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: java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator at MyApplication$HelpSelector.commandAction(+721) at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282) at...
5
3790
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 javax.microedition.lcdui does not exis import javax.microedition.lcdui.*; ^ Welcomeform.java:8: cannot find symbol symbol: class Form public class WelcomeForm extends Form implements CommandListener
0
1954
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
1748
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 how to retrieve the property, midlet.getAppProperty("MYID"); but i don't know how to change the custom App Property as there is no setAppProperty() method,
0
10363
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11836
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11599
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10923
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10094
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8467
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
5164
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.