jpackage: support for environment variables in --java-options

Michael Hall mik3hall at
Mon Aug 31 20:07:17 UTC 2020

> On Aug 29, 2020, at 3:37 AM, Serban Iordache <serban.iordache at> wrote:
> Hi,
> Is there a way to pass values from environment variables when using
> --java-options?
> It would be nice to be able to write something like this:
> --java-options "-DmyAppData=$HOME/.myData”

For this couldn’t you just pass the parameter without the path and then add it later?


final String HOME = System.getProperty(“user.home”);

More information about the core-libs-dev mailing list