Using BouncyCastle in midlet -- Error in console

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickyeng
    Contributor
    • Nov 2006
    • 252

    #1

    Using BouncyCastle in midlet -- Error in console

    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.

    Code:
    java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
    	at MEMerchantInterface$HelpSelector.commandAction(+721)
    	at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
    	at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
    	at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
    	at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
    	at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
    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
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by nickyeng
    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.

    Code:
    java.lang.NoClassDefFoundError: org/bouncycastle/crypto/PBEParametersGenerator
    	at MEMerchantInterface$HelpSelector.commandAction(+721)
    	at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
    	at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
    	at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
    	at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
    	at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
    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.

    Comment

    • nickyeng
      Contributor
      • Nov 2006
      • 252

      #3
      Originally posted by r035198x
      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.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by nickyeng
        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.

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by nickyeng
          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

          Comment

          Working...