Same as : https://sourceforge.net/p/launch4j/feature-requests/63/
Quoting tboerkel: "I installed 64 Bit JVM first and then 32 Bit JVM. When I double-click a JAR, then it will use the 32 Bit JVM. But when I start via the .exe, it uses the 64 Bit JVM. How can I force launch4j to use the latest installed JVM or the 32 Bit JVM (no hardcoding of paths)? "
It is important to force 32 bits detection under 64 bits OS because when 32 bits librairies are used with java, the JRE used must be in 32 bits too, if both 64 and 32 bits jre are installed, always the 64 bits is chooses.
I have followed this discussion : http://stackoverflow.com/questions/2688932/configure-launch4j-to-use-32-bit-jvm-only
This patch work for us for more than one year. You can configure it into GUI and it is save into config file.
Added.
Happy that this patch was accepted and added to your software.
Actually I implemented this in a different way to allow for more flexibility, but thank you for submitting.
Grzegorz