I got a small doubt here. While we are generating any new application we used to deliver them as jar files. Now my question is are we able to decompile these jar files...? if yes how can I avoid that...? Please let me know, thanks in advance.
Asked
Active
Viewed 3.0k times
9
-
Use google first, realy. http://stackoverflow.com/questions/49379/how-to-lock-compiled-java-classes-to-prevent-decompilation – Gatekeeper Sep 16 '13 at 12:26
-
2Also often your code isn't worthy of decompilation in the first place. You just assume that people wish to see it. – Kayaman Sep 16 '13 at 12:32
2 Answers
4
Decompilation cannot be avoided. You can easily make the code hard to read. There are free libraries available to obfuscate the code. proguard.sourceforge.net

user1401472
- 2,203
- 3
- 23
- 37
1
You can decompile jar files (have a look at jd-decompiler). You can't avoid it! You just make it harder to read it with an obfuscator. (have a look at SandMark)
or create a programm which loads a crypted version of yours at runtime into memory.

Danny.
- 363
- 1
- 4
- 23