Bundle a JRE into an exe using Launch4J
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