File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Can anyone prevent his code from being decompiled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Can anyone prevent his code from being decompiled" Watch "Can anyone prevent his code from being decompiled" New topic
Author

Can anyone prevent his code from being decompiled

lexander Bosco
Ranch Hand

Joined: Feb 21, 2005
Posts: 65
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 ]

there is no knowledge that is not power<br />-<br />SCJP 1.4<br />SCWCD in progress<br />SCMAD in progress
Marcin Zduniak
Greenhorn

Joined: Jun 13, 2005
Posts: 15
There is no such a way.


:: Marcin Zduniak<br />:: work: <a href="http://www.mobtechlab.com" target="_blank" rel="nofollow">Mobile Technology Lab</a><br />:: priv: <a href="http://www.zduniak.com" target="_blank" rel="nofollow">www.zduniak.com</a><br />:: hobby: <a href="http://www.j2me.pl" target="_blank" rel="nofollow">www.j2me.pl</a>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

A really good Obfuscator helps, but nothing is guaranteed.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
lexander Bosco
Ranch Hand

Joined: Feb 21, 2005
Posts: 65
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

Joined: Mar 21, 2001
Posts: 169
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

Also, that smiley face in the VERIFY ERROR probably isn't good.

Mark
lexander Bosco
Ranch Hand

Joined: Feb 21, 2005
Posts: 65
but guys i did just what u said stuart and its still sayin da same thing
so what next?
Fred Grott
Ranch Hand

Joined: Oct 05, 2002
Posts: 346
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


MobileBytes blog - Sharing Technology - My Programming Knols
lexander Bosco
Ranch Hand

Joined: Feb 21, 2005
Posts: 65
fred what u mean?
plz elucidate
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can anyone prevent his code from being decompiled