I have a project that I want to be able to run on all computers regardless of whether java is installed or not. I know Minecraft does this by preloading java, and I've looked into programs like exe4j, jsmooth, and launch4j, but have had no luck. Does anyone know how to take my jar file and create an executable that preloads java before running the jar file?
Asked
Active
Viewed 39 times
-1
-
Can you explain what you mean by "Minecraft does this by preloading java"? Are you referring to the fact that the Minecraft executable has an embedded JRE? Also, what version of Java are you using? Which Java9+ there are new ways of dealing with this kind of problem. – Stephen C Jul 15 '21 at 13:06
-
You may find https://stackoverflow.com/questions/53453212/how-to-deploy-a-javafx-11-desktop-application-with-a-jre helpful. – VGR Jul 15 '21 at 13:07
1 Answers
0
With modern JDKs, you can build native installers without 3rd party installers. See

g00se
- 3,207
- 2
- 5
- 9
-
1Link-only answers are usually not good answers, since there is no guarantee the external URL will be valid when future readers visit this page. – VGR Jul 15 '21 at 13:07