Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

Obfuscators and jar files

Thread view: 
javadev - 19 Apr 2006 13:13 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. 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.