Running a java program as an exe in Windows without JRE installed

java, windows

Solution

You can ship the JRE with your application and use that JRE for your application. The effect is the same: The application will be started through an executable (wrapper needed) or script (batch) file and the target machine does not need to have a java runtime installed.

Java doesn't have to be 'installed', it just has to be 'present'.

Problem

I want to run a java program as an exe in Windows. The windows box doesn't install java at all... So, is there any other way in which the java program can be converted to an exe which removes the need for a dependency on the JRE?

Original source