This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes How to protect my source code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to protect my source code?" Watch "How to protect my source code?" New topic
Author

How to protect my source code?

Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55
Hi,
How to protect source code from decompilers?!


--BJCK--
Chris Harris
Ranch Hand

Joined: Sep 21, 2003
Posts: 231
Try zelix a tool that provides java obfuscation.


SCJP 1.2, SCWCD, SCBCD
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
You can't. If the Java VM will run your code, it can be decompiled. Obfuscators can make the decompiled code hard to read, but AFAIK, there is not way to prevent decompiling.
Brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
The only way to "protect" your code is to not distribute it and provide a service instead of a product.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to protect my source code?