File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Decompiling .class Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Decompiling .class Files" Watch "Decompiling .class Files" New topic

Decompiling .class Files

Rajesh Kumar

Joined: Nov 16, 2001
Posts: 28
Hai Friends
a Interesting Topic
Java Class files can be easily Decompiled using the decompiles like JAD etc.,
Is there anyway to restrict decompiling .class files.
I want to restrict my java code. ie., other should not decompile my class files.
Is there any solution to restrict anyof the way. ??
pl tell me.
Thanks in advance
Jeff Slominsky

Joined: Dec 10, 2001
Posts: 12
if you are distributing the software to others, you can wrap your classes in a install shield, that way the user can't see the class files directly.
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
There is also a tool out there called Crema, created by the same person who developed Mocha, a Java decompiler. Crema basically scrambles any code that is decompiled, so that it is not reusable. I haven't used Crema myself, but if you do a search on it from your favorite search engine, I am sure you will find links on where to download it.
matt hooker
Ranch Hand

Joined: Jul 26, 2001
Posts: 46
There are many tools that perform Obfuscation of java classes. Most of the larger java products you will find use DashO Pro .. this is pretty much the industry standard as far as obfuscation tools go. Many of the 'free' tools will make code a bit of a pain to view when decompiled, but seldom do a sufficient job to greatly hinder a determined code spy ....
But hey, why would you want to decompile and view that code anyway ...... I'm watching you

Its not what you do, its the way you say you've done it.
I agree. Here's the link:
subject: Decompiling .class Files
jQuery in Action, 3rd edition