×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41

    Cannot Create Obfuscated Package

    i am trying to make a obfuscated package, but when i do it it says:

    Error preverifying class a

    Class loading error: Wrong name

    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1

    Build failed

    com.sun.kvem.midletsuite.InvalidJadException: Reason = 31

    The jar size value in the Application Descriptor does not match the real jar file size.


    i am using wireless toolkit 2, and progaurd.
    it can make normal package but not obfuscated.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Indonesia - East Java
    Posts
    128

    solustions

    dear asif,

    May be you can fix your problem after that please look againt your jar size its different before you to do obfuscated package after that change your jad properties with new jar from obfuscated package, and afther that try obfuscated package again.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41
    please i need more help,
    changing the jad didnt help.

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Indonesia - East Java
    Posts
    128

    Solustions

    Dear asif,

    At jad that have some optional that name is MIDlet-Jar-Size is change with new jar (best before please try to obfuscated package -> at here it would be error but it has been created jar but it size its different before your jar not at obfuscated package)
    If that after you change that size jar at that optional still error you must download that application because that jar application for to obfuscated package

  5. #5
    Registered User
    Join Date
    Oct 2003
    Posts
    30
    I have faced that before. My solution is:
    open the 'ktools.properties' file in '\WTK20\wtklib\Windows' with an editor and change the following lines:

    obfuscator.runner.class.name: com.sun.kvem.ktools.RunPro
    obfuscator.runner.classpath: wtklib\\ktools.zip

    to

    obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
    obfuscator.runner.classpath: bin\\proguard.jar

    The problem should be solved then.

    However, I don't know the cause of that problem. It seems that some program style would 'confuse' the obfuscator in some way. Moreover, I found that the resulting jar come out from this solution may not be functional in Motorola's mobile phone...

  6. #6
    Registered User
    Join Date
    Oct 2003
    Location
    Bangladesh
    Posts
    41
    i found out that whenever there are more than 24 or 26 classes , this problem occurs.

    dont know why... may be a bug

  7. #7
    Registered User
    Join Date
    Feb 2005
    Posts
    4

    Re: Cannot Create Obfuscated Package

    Solution given by Horaceng worked for me....using WTK2.3

Posting Permissions

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