Discuss: Prevent jlink runtimes from reading _JAVA_OPTIONS

Alan Bateman Alan.Bateman at oracle.com
Wed May 8 04:43:27 UTC 2024


On 08/05/2024 04:25, Bruno Borges wrote:
> In this Reddit discussion [1], the user complains that a jlinked 
> runtime of their application, packaged with jpackage, was failing to 
> some degree due to the environment variable _JAVA_OPTIONS being set 
> somewhere else in the system.
>
> I do agree with the user that a runtime shipped as a built-in 
> component of a Java-based standalone application should not have its 
> properties altered due to a magical environment variable.
>
> I'd like to ask if it is reasonable to suggest that in the case of a 
> jlinked runtime, this should not happen.
>
There was another thread about this a few days ago [1].

-Alan

[1] https://mail.openjdk.org/pipermail/hotspot-dev/2024-May/088245.html


More information about the hotspot-dev mailing list