Using jpacakge with a mixed-modularity app

Sam Carlberg sam.carlberg at
Fri Dec 14 19:22:00 UTC 2018

Say I have an app with both modular and non-modular dependencies. With
jlink, I can generate a runnable image for the app by linking the modular
dependencies and placing the non-modular dependencies on the classpath
using a custom launch script.

Can jpackage take this mixed-modularity image and create an installer for
it? Or would it have to take a fully-modular image and add the non-modular
dependencies and app jar as a separate step? I can find no information in
the JEP on how non-modular JARs (aside from the main JAR) should be
included in a package

Sam Carlberg

More information about the core-libs-dev mailing list