Open zshamrock opened 5 years ago
https://www.developer.com/java/data/how-modules-are-packaged-in-java-9.html (over building the custom jimage?)
https://docs.oracle.com/javase/9/tools/jlink.htm
jlink --module-path jmods;/home/java9_projects/dbapp/jmods --add-modules org.dbapp.model,org.dbapp.services,org.dbapp.view --launcher runapp=org.dbapp.view/Main --output dbapp
Can use Amazon Corretto 8.232 as it is free and still contains JavaFX within the runtime. It might not be optimal (in the terms of the resulting app size), but could be faster than wait to switch to JDK 11, and properly setup JavaFX on JDK 11.
From https://openjfx.io/openjfx-docs/#modular "Use custom image" section:
Note: This custom JRE is platform-specific and it is not intended for distribution, and if there is a new JDK or a new JavaFX SDK, it has to be created all over again. However, its jlink tool can be used to create a custom image with the project that can be distributed. And the (soon to be released) jpackage tool can be used for distributing installers with the jlinked project.
See also section "Cross-platform jar" from https://openjfx.io/openjfx-docs/#modular.
Using JDK (or rather JRE) and OpenJDK within the distribution.
Here some of the link https://docs.oracle.com/javafx/2/deployment/deploy_overview.html, although probably it is outdated.