Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Launch4J be set so that the exe files it creates cannot show its contents through zip/egg/rar file when right click on/ open with it?

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?

like image 938
User7829300192 Avatar asked Jan 01 '12 09:01

User7829300192


2 Answers

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.

like image 154
Ingo Kegel Avatar answered Sep 24 '22 02:09

Ingo Kegel


  1. 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.

  2. 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

  3. 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.

like image 37
Lalith J. Avatar answered Sep 23 '22 02:09

Lalith J.