I am using Launch4j with a bundled jre version. The path of the jre version has to be configurable, so I though using the .ini file. I don't understand the documentations on the launch4j website, so I'm coming here for help.
Here is the part of my launch4j config:
<jre minVersion="1.6.0">
<path>%JRE_PATH%</path>
<jdkPreference>preferJre</jdkPreference>
</jre>
and this is in my myapp.l4j.ini:
-JRE_PATH="D:\builds\jre"
But the exe file always says:
This application was configured to use a bundled Java Runtime Enviroment but the runtime is missing or corrupted
The JRE_PATH variable should be added into the path-element at runtime.
What am I doing wrong?