Bundle the jvm in a folder called jre at the same level as your launcher
exe
E.g.
myApp.exe
myApp.ini
jre/
bin/
lib/
ext/
Then in the myApp.ini file, add the following -
-vm ./jre/bin/javaw.exe
If you don't put this entry into the product ini file, the launcher uses
its own algorithm to find a JVM on the system, which might NOT be the one
that you bundled.