Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can anyone prevent his code from being decompiled

 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys i want to know if anyone knows of anyway he or she can prevent thier code from being decompiled?
[ August 02, 2005: Message edited by: Mark Spritzler ]
 
Marcin Zduniak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such a way.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A really good Obfuscator helps, but nothing is guaranteed.

Mark
 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok mark i tried proguard
i unzipped its proguard.jar into the bin directory of my wireless toolkit
but its not jar-ing my application.
its complainin of this error

--------------------------------------
Error preverifying class mpayment
VERIFIER ERROR mpayment.commandAction(Ljavax/microedition/lcdui/Command;Ljavax/microedition/lcdui/Displayable V:
Incompatible object argument for function call
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.
----------------------------------------

what u think is da matter ?
 
Stuart Goss
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

just don't unzip the jar file!

Copy it as proguard.jar into the WTK (version should be > 2.0)
bin directory.

here is also a link with some instructions:
http://developers.sun.com/techtopics/mobility/midp/ttips/proguard/

Regards,
Stuart
[ August 03, 2005: Message edited by: Stuart Goss ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, that smiley face in the VERIFY ERROR probably isn't good.

Mark
 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but guys i did just what u said stuart and its still sayin da same thing
so what next?
 
Fred Grott
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OKay, lets make some progress here..

Items to incldue so that we can help solve yoruprolem:

-WTK version
-JDK version
-complete or first part of error log
 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred what u mean?
plz elucidate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic