×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    18

    Error when using BouncyCastle to create RSA crypto in midlet

    hi all,

    i created obfuscated package successfully with Proguard4.4 and clcd_classes.zip of BC 1.45. But when i run project from JAD url: {project name}/bin/deployed then i alway get error:

    Uncaught exception java/lang/NoClassDefFoundError: org/bouncycastle/crypto/KeyGenerationParameters, or symmetricCipherKeyPair

    i'm using eclipseME and i don't know that where step is incorrect?
    pls help me, see picture below to detail




    thks and best regards
    Last edited by phungnguyen; 2010-07-02 at 14:36.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Error when using BouncyCastle to create RSA crypto in midlet

    Go to the project's build-path configuration. Look in the "order and export" tab, and make sure that the Bouncy Castle libraries are set to "export" (ticked).

    Graham.

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    18

    Re: Error when using BouncyCastle to create RSA crypto in midlet

    thanks Graham,

    i read many topic of this discussion but i haven't found solution to fix this problem.

    i went to project's build-path configuration and ticked on BC lib and then i could not create obfuscated package with error:

    Errors occurred during the build.
    Errors running builder 'Preverification' on project.
    org.eclipse.jdt.internal.core.JavaModel.getTarget(Lorg/eclipse/core/resources/IContainer;Lorg/eclipse/core/runtime/IPath;Z)Ljava/lang/Object;

    When i did not tick on BC lib then i created obfuscated package successfully. I don't know what?

    My use specified arguments: -dontusemixedcaseclassnames -dontnote -dontoptimize -defaultpackage '' -libraryjars 'C:\crypto-145\crypto-145\zips\cldc_classes'

    (srr for my bad english)
    thks and best regards
    Last edited by phungnguyen; 2010-07-04 at 16:01.

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Error when using BouncyCastle to create RSA crypto in midlet

    Don't specify your own obfuscation arguments. Allow it to use its defaults.

    Graham.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    18

    Re: Error when using BouncyCastle to create RSA crypto in midlet

    thank Graham,

    yes, i will do it,

    and i found solution to fix my problem.
    - first: i have to check on BC lib of project's build-path configuration
    - second: update eclipseME plugin version 1.8 for eclipse IDE version 3.4 with link: http://eclipseme.org/testversions

    only that, very simple but i used much time to fix it, and i saw many people in orther forums get similar problem.
    i hope they would see this topic and fix their error successfully.

    thanks and best regards

Similar Threads

  1. How to create RInteger for RSA
    By BabyKiller in forum Symbian
    Replies: 8
    Last Post: 2011-03-09, 09:54
  2. Error using Bouncycastle algorithm in j2me using wtk2.5
    By swetha25 in forum Mobile Java General
    Replies: 1
    Last Post: 2010-04-26, 05:00
  3. Problem with org.bouncycastle.crypto.digests package in Bouncy Castle
    By changos2099 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2009-10-14, 07:00
  4. RSA Crypto
    By sirtomash in forum Symbian
    Replies: 14
    Last Post: 2009-07-18, 17:07
  5. Need Help with RSA using BouncyCastle
    By CHiMaN in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-03-27, 09:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •