• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Java Decompilation

 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have question regarding decompilation of java classes.

There are many tools like JAD which can decompile a java class.
Is there any way I can protect my java class from decompilation?

Thanks in advance
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a number of free and commercial code obfuscators around. However, even the best of them won't completely protect your code; they are based on the principle that the effort required to follow the obfuscated code is greater than the value derived from doing so.

I tried out four or five of them last year and was best impressed by Dash-O, but it is expensive.

Regards,
Ken
 
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
google for java obfuscators
 
Pol Appan
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use proguard http://proguard.sourceforge.net.
It seems to be good.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Short (and only correct) answer: NO.

Anything can be decompiled into something. The only thing you can do is make it harder, so the economic cost of decompiling and understanding the the stuff is greater than the economic benefit of doing so.

This usually (almost always) means you don't need to do anything at all.

90%+ of people wanting to "protect" their code from decompilation do so purely out of vanity or other non-reasons. The few who do have a reason usually know that any "protection" can be easily overcome and resort to different means like ASP architectures where the compiled code is never made available to the user at all.
 
reply
    Bookmark Topic Watch Topic
  • New Topic