How is my jar executable protected?

I developed a Java desktop application. I converted my code as an executable jar (.jar) format. My problem here is that these jar files are easily extracted by winrar / winzip. My Java class files are visible to others, and I am also doing the decompilation process using JAD, my source code is available to everyone. is a way to protect my source code from the compilation process.

+4
source share
3 answers

You cannot stop decompilation 100%, but you can obfuscate your code, which will be difficult to read once after decompilation

+2
source

As Jigar Joshi said, you can mess up your jar file. Proguard is good. Here is a link to it. http://java-source.net/open-source/obfuscators . Alternatively, you can convert jar to exe using jar to exe converter. You can download it here. But you have to buy it. http://www.regexlab.com/en/jar2exe/ .

+1
source

Put a password or license check at the beginning of the application. With proper authentication, only the user should be able to run the application further.

To verify the password, you must create public and public key concepts. To obtain a license, you can use some installed software or connected equipment.

0
source

Source: https://habr.com/ru/post/1379105/


All Articles