zshamrock / dynoman

DynamoDB management UI
GNU General Public License v3.0
7 stars 0 forks source link

Build self contained distribution #234

Open zshamrock opened 5 years ago

zshamrock commented 5 years ago

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.

zshamrock commented 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

zshamrock commented 5 years ago

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.

zshamrock commented 5 years ago

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.