We wrote a JavaFX application using JDK8 and we would like now to deploy our app not only using the jar file but also alternatively providing a zip file that bundles:
- the jar file
my.jar
- a .bat (or .sh) file that simple does
.\jre\bin\java.exe -jar my.jar
- the jre itself in a
jre
folder
Ideally we would like to create three such bundles (zip files): for Windows, Linux, MacOS. This can be easier for the end user and saves the trouble of the user downloading a proper JRE, installing it etc.
So, we now have to decide on the legally proper JRE to include to our zip file (technically we could simply bundle the Oracle JRE - but Oracle TOS clearly prohibit the distribution from ISVs).
Due to the recent Oracle licensing developments not only for Java but also for JavaFX, the separate licensing of JavaFX
etc, I am really straggling to find the proper use of the license-friendlier AdoptJDK
, OpenJFX
, OpenJDK
etc to create the bundle above.
What might be the most sensible approach to allow us form this JRE/JavaFX bundle?
Which jre
should we include that also contains a properly licensed JavaFX
runtime?
Should we bundle the jre
separate from JavaFX
implementation?