External _JAVA_OPTIONS environment variable sourcing for self-contained applications

Christopher Schnick crschnick at xpipe.io
Sun May 5 22:25:04 UTC 2024


Since there already is the jpackage tool to create an application 
launcher, such an option could also be added to jpackage if it better 
fits there. Alternatively, a JVM argument to disable external 
environment variable argument sourcing would also work.

On 05/05/2024 10:25, Andrew Haley wrote:
> On 5/4/24 18:22, Christopher Schnick wrote:
>> All I'm asking for is to consider giving
>> developers an option in jlink that is explicitly opt-in to disable this
>> environment variable sourcing. That way the original behavior would not
>> be changed unless explicitly requested by the developer.
>
> If I had to solve the problem quickly (as in, less than a year or
> so) I'd consider creating a custom launcher. I think that would reset
> any environment variables then start Java.
>


More information about the hotspot-dev mailing list