×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2012
    Location
    Bangalore,India
    Posts
    26

    Obfuscation failed

    Hi I am developing an application for s40 X3 - nokia device. In that i try to obfuscate the build but it showing the error like:

    "C:\Users\user\Desktop\CCD\nbproject\build-impl.xml:427: Obfuscation failed with error code 1.
    BUILD FAILED (total time: 7 seconds)".


    Warning: org.json.me.JSONArray: can't find referenced method 'java.lang.Object remove(int)' in class java.util.Vector
    Warning: there were 1 unresolved references to program class members.
    Your input classes appear to be inconsistent.
    You may need to recompile them and try again.
    Alternatively, you may have to specify the options
    '-dontskipnonpubliclibraryclasses' and/or
    '-dontskipnonpubliclibraryclassmembers'.
    Error: Please correct the above warnings first.


    Please help me..!

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Obfuscation failed

    You may need to recompile them and try again.
    Alternatively, you may have to specify the options
    '-dontskipnonpubliclibraryclasses' and/or
    '-dontskipnonpubliclibraryclassmembers'.

    For java.lang.Object remove(int)' in class java.util.Vector
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,556

    Re: Obfuscation failed

    Does the app work fine without obfuscation? That is, can you build, install and run the app in the emulator and also on actual devices all right without obfuscation? Any compilation/build warnings at that time, which you're ignoring?

    Which tool and how are you trying to obfuscate the code, exactly?

  4. #4
    Registered User
    Join Date
    Jul 2012
    Location
    Bangalore,India
    Posts
    26

    Re: Obfuscation failed

    Thanks im2amit.,Actually in my application i am using json.If i added the json into the project resouces and obfuscate by using netbean. it showing that error.It execute fine without obfuscatiing..now what i want to do for solving this issue..

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Obfuscation failed

    You may want to double-check what code you are writing for what platform. "Object remove(int)" is a method of desktop Java (http://docs.oracle.com/javase/1.4.2/...il/Vector.html), but there does not seem to be such method in Java ME Vector (http://docs.oracle.com/javame/config...il/Vector.html). Of course it can be easily compose from calls to elementAt+removeElementAt, but it is strange how it happens to be in your code and how it works (does it?) on an X3 even without obfuscation.

Similar Threads

  1. Obfuscation failed with error code 1
    By JFreelance in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2012-08-27, 13:11
  2. Help Please : Obfuscation failed with error code 1
    By 07mca035 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2010-04-05, 14:57
  3. Obfuscation
    By FatalError in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-10, 11:26
  4. Replies: 5
    Last Post: 2003-06-03, 11:34
  5. obfuscation
    By AbU5e in forum Mobile Java General
    Replies: 1
    Last Post: 2002-06-18, 16:13

Posting Permissions

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