Launch4J is a jar to exe converter. I used Launch4J to convert jar to exe but when I right click on that exe file Launch4J created, it shows the contents in the jar file (class, etc files) from which it was made from when I right click on that exe file. Any way to disable that and disable showing its contents when opened using zip/rar/egg/jar?
This is a pointless endeavor. It is very easy to extract class files from a running JVM. Hiding them in the executable is like making your windows secure but leaving your door open. Using an obfuscator is your only chance to make it harder to reverse engineer your implementation.
Launch4J Really not making normal EXE files. It making self-extracting archive (SFX). when click a exe file(made by Launch4J) it extract itself to your jre directory then execute the applications main jar file.
So they must be Extractable. You can't change them. If you do they will not work.
If you interesting to understand this process Please read this (This will explain how we manually create a SFX file.) http://mark.koli.ch/2009/10/bundle-java-the-jre-and-launch-a-java-app-with-7zip-sfx.html
Here is a SFX file(it is an exe) made manually using 7 zip. http://mark.koli.ch/2009/10/26/7zipsfx-launch-java-example-exe.zip
Thank you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With