I have created a jar file which works well and I wish to obfuscate this
file. I tried 2 obfuscators so far that can obfuscate jar files, Zelix
KlassMaster and Marvin Obfuscator. Both these work and generate
obfuscated jar files but neither of the generated files work. Both
produce "Java Virtual Machine Launcher" errors. The one from Marvin
Obfuscator seems to be invalid/corrupt while the one generated by Zelix
KlassMaster gives a fatal error.
Does someone know any "reliable" obfuscator that can produce a
completely functional jar file from an already functional jar and/or
any way I can set right the errors I've mentioned above?
Regards
SS
Ed Kirwan - 19 Apr 2006 14:40 GMT
> Does someone know any "reliable" obfuscator that can produce a
> completely functional jar file from an already functional jar and/or
> any way I can set right the errors I've mentioned above?
>
> Regards
> SS
Pretty reliable:
http://proguard.sourceforge.net/

Signature
www.EdmundKirwan.com - Home of The Fractal Class Composition.
Download Fractality, free Java code analyzer:
www.EdmundKirwan.com/servlet/fractal/frac-page130.html
javadev - 19 Apr 2006 15:06 GMT
Thanks Ed, will try Proguard.
-SS
javadev - 20 Apr 2006 10:26 GMT
I tried ProGuard and it did give me a working output!!! But when I
decompiled the output I found that more obfuscation was needed. Many
parts of the code that I wanted obfuscated hadn't been changed.
Swetha
Chris Uppal - 19 Apr 2006 14:44 GMT
> I have created a jar file which works well and I wish to obfuscate this
> file. I tried 2 obfuscators so far that can obfuscate jar files, Zelix
> KlassMaster and Marvin Obfuscator. Both these work and generate
> obfuscated jar files but neither of the generated files work. Both
> produce "Java Virtual Machine Launcher" errors.
Is this a JME application, and are you obfucating a JAR which has stack maps
already computed ? If so then you can't do that, you have to obfuscate before
computing the maps. See:
http://developers.sun.com/techtopics/mobility/midp/questions/obfuscate/
-- chris
javadev - 19 Apr 2006 15:05 GMT
No Chris, its not a JME application, its a Swing based application.
-SS
Roedy Green - 20 Apr 2006 01:28 GMT
>Does someone know any "reliable" obfuscator that can produce a
>completely functional jar file from an already functional jar and/or
>any way I can set right the errors I've mentioned above?
for a list of candidates see
http://mindprod.com/jgloss/obfuscator.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
javadev - 20 Apr 2006 10:24 GMT
Hi Roedy
Well, the link you have suggested was my starting point for the whole
obfuscation process. I got to the Zelix KlassMaster and the Marvin
Obfuscator from there.
Thanks
Swetha