Let generated binary file for Linux can be launched by double-click
Any generated executable binary file from Jar2Exe is both an executible file and a shared library file. On Linux, when it is double-clicked from file manager window, the file manager detects it a shared library first, so usually the binary fails to be started. On Windows and Mac, there is no such problem.
So, to be launched by double-click on Linux, a program must not be a "shared library", it can be an executable binary file only.
We rename the generated binary file of Jar2Exe to a ".so" file, and then we use another empty starter program to launched it, then the empty starter file can be double-clicked. The empty starter will search the corresponding executable file with the same filename as itself plus a ".so" and launch it.
Steps of this advice:
- Rename your generated executable file of Jar2Exe to append a ".so". For example, if your program is "game1", then rename it to "game1.so".
- Download the empty start program and extract it.
- Rename the downloaded empty start program to your program name. For example "game1". Please choose the correct 32 bits or 64 bits.
- Put the empty start program "game1" and the generated binary "game1.so" in one folder.
- The the "game1" can be started from command line or from double-click.