File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to protect my source code?" Watch "How to protect my source code?" New topic

How to protect my source code?

Bruno Frascino
Ranch Hand

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

Chris Harris
Ranch Hand

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

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.

My Java Freeware:<br />MACCC - <a href="" target="_blank" rel="nofollow"></a><br />Nator - <a href="" target="_blank" rel="nofollow"></a>
norman richards
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.
I agree. Here's the link:
subject: How to protect my source code?
It's not a secret anymore!