Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How secure my Executable jar file

Tags:

java

jar

I developed a desktop application in Java. I converted my code in the form of Executable jar (.jar) format. Here my problem is, this jar files easily extracted by winrar/winzip. My Java class files are visible to others and also i do De-compilation process using JAD my source code are visible to everyone. is any way to protect my source code from De-compileation process.

like image 966
Aerrow Avatar asked Oct 10 '22 14:10

Aerrow


2 Answers

You can't 100% stop decompilation but you can obfuscate your code that will be hard to read once after decompilation

like image 154
jmj Avatar answered Oct 12 '22 03:10

jmj


As Jigar Joshi said you can obfuscate your jar file. Proguard is a good one. Here's the link to it. http://java-source.net/open-source/obfuscators. Alternately you can convert jar to exe using jar to exe converter. You can download it here. But you have to purchase it. http://www.regexlab.com/en/jar2exe/.

like image 33
Raghunandan Avatar answered Oct 12 '22 05:10

Raghunandan