r/JavaFX • • Jul 20 '24

Help Open JDK jpackage issues.

3 Upvotes

7 comments sorted by

View all comments

1

u/wildjokers Jul 20 '24

Jars have to be modularized to work with jlink since jlink doesn’t work with the automatic module. There is a gradle plugin called the badass jlink plugin that takes care of creating a modularized fat jar from all non-modularized jars. It is the easiest way to create bundled slimmed down runtimes and package it with jpackage.

https://badass-jlink-plugin.beryx.org/releases/latest/

1

u/[deleted] Jul 21 '24

[removed] — view removed comment

1

u/wildjokers Jul 21 '24

I am not sure, that is odd because all the vendors build OpenJDK for their distributions. Even Oracle JDK is a build of OpenJDK.