×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Location
    Delhi
    Posts
    136

    Post eclipse not creating obfuscated package with external lib

    i am using bouncy castle for encryption.I added cldc_classes.zip & cldc_crypto.zip as a extenal lib.but when i want to create a obfuscated package i am getting following error.





    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.modes.CBCBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.modes.CBCBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.params.KeyParameter
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.params.KeyParameter
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.CryptoException
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.engines.AESEngine
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.engines.AESEngine
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.util.encoders.Hex
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.util.encoders.Hex
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.util.encoders.Hex
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BufferedBlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BlockCipher
    Warning: com.example.helloworld.Encrypt: can't find referenced class org.bouncycastle.crypto.BlockCipher
    Warning: there were 23 unresolved references to classes or interfaces.
    You may need to specify additional library jars (using '-libraryjars'),
    or perhaps the '-dontskipnonpubliclibraryclasses' option.
    Error: Please correct the above warnings first.
    Last edited by kapnkore; 2010-03-20 at 05:11.

  2. #2
    Regular Contributor
    Join Date
    Apr 2009
    Location
    Delhi
    Posts
    136

    Re: eclipse not creating obfuscated package with external lib

    ok i was searching since yesterday.
    bouncycastle run only with obfuscated packaged jad on emulator & i forgot to click check box after adding external lib in order & export.
    I checked it & now its creating the package.So my problem is solved now.

  3. #3
    Regular Contributor
    Join Date
    Apr 2009
    Location
    Delhi
    Posts
    136

    unable to run on device

    I added extrnal lib.obfuscated the package n run the jad on the emulator works totally fine.
    but when i am trying the same file to install on device then getting problem.

    My package contains three files.
    1)myapp.jar
    2)myapp_obf.jar
    3)myapp.jad

    when i try to install first get installed but when i try to encrypt with extranal lib api says unhandled exeption error.

    when i try to install second get installed but as soon as i start midlet gives unhandled exeption
    when i try to install jad file it says invalid jar file please suggest i am new with this.

  4. #4
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    69

    Re: eclipse not creating obfuscated package with external lib

    Hi,

    My package contains three files.
    1)myapp.jar
    2)myapp_obf.jar
    3)myapp.jad
    Application can be installed through mayapp.jar

    myapp_obf.jar can't be used for installation purpose.

    myapp.jad u can use if u r installing through OTA.


    On which phone ur installing the application. And give some more detail abt the error what u r getting.

    hope this will help u.

    Enthusiastic

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Location
    Delhi
    Posts
    136

    Re: eclipse not creating obfuscated package with external lib

    i am trying to install on e71.
    when i try to install myaap.jar
    it installs sucessfully.
    then midlet also start.
    but when my command goes to encrypt the string it uses extrnal lib api for encrypting that time device says unhandled exception midlet close?
    but on emulator i am running by passing the jad url & its working perfectally fine.

Similar Threads

  1. Dailogs and his features
    By MobiSecLap in forum Symbian
    Replies: 18
    Last Post: 2009-02-10, 13:27
  2. Problem with Creating Package in Nokia Developer Suite 2.0
    By benjamin_lee in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-06-24, 13:00
  3. IOException upon creating Application Package
    By zikko in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-06-02, 11:51
  4. using external package with nds?
    By jean_mountford in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-29, 15:59
  5. Dialogs within Symbian 6.0 based SDK
    By georgica1979 in forum Symbian User Interface
    Replies: 14
    Last Post: 2003-04-07, 15:29

Posting Permissions

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