I'm attempting to bundle the JRE into my exe using launch4j.
My folder structure is as follows-
|- test
|- jre(copied from my windows installation of jre)
|-bin
|-lib
|- jretest.jar (the jar file I am using to create my exe)
|- jretest.exe (the output exe file)
In Launch4j, I have set the Bundled JRE Path
as jre
.
The exe works fine so far.
However, when i copy my exe file elsewhere and run it, I get the error message This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted
.
I have searched on SO and found the following questions but couldn't get my application to work with the suggestions given there.
How to bundle a JRE with Launch4j?
Any idea what could be going wrong here with a jre bundled in it?
How can I make an independent exe ?
I do not want to make an installer for my application but just intend to run it.
Any help would be greatly appreciated.