jpackage runtime binaries

Scott Palmer swpalmer at
Tue Feb 18 18:48:16 UTC 2020

I’m using jlink to build my own runtime for exactly this reason.  My app needs to launch Java sub-processes, so it needs to be able to find the java executable.


> On Feb 18, 2020, at 1:10 PM, Michael Hall <mik3hall at> wrote:
> I was wondering if there is any way to include java executable binaries like bin/java.
> They do not appear to be default included. Looking at help I am not seeing a specific parameter for that purpose.
> I do see…
> --runtime-image <file path>
>          Path of the predefined runtime image that will be copied into
>          the application image
>          (absolute path or relative to the current directory)
>          If --runtime-image is not specified, jpackage will run jlink to
>          create the runtime image using options:
>          --strip-debug, --no-header-files, --no-man-pages, and
>          --strip-native-commands.
> Is —strip-native-commands what causes these to be omitted? So the workaround would be to jlink your own runtime. Or would a parameter to control that specific setting be possible?
> Thanks

More information about the core-libs-dev mailing list