<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">The use of _JAVA_OPTIONS is part of the long established pattern to configured a process. This pattern preferes configurations starting with command line over environment variables over configuration files. I can understand why this is problematic if one is unaware but this is a decades old well establish practice that the JVM follows.</div><div class=""><br class=""></div><div class="">Kind regards,</div><div class="">Kirk<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 8, 2024, at 7:00 AM, Bruno Borges <<a href="mailto:Bruno.Borges@microsoft.com" class="">Bruno.Borges@microsoft.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">

<div class="">
<div dir="auto" class="">Thanks Alan.</div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">I'll follow up there </div>
<div class=""><br class="">
</div>
<div id="ms-outlook-mobile-signature" dir="auto" class="">
<div dir="auto" class="">Sent from mobile device.</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1" class="">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size:11pt" class=""><b class="">From:</b> Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com" class="">Alan.Bateman@oracle.com</a>><br class="">
<b class="">Sent:</b> Tuesday, May 7, 2024 9:43:27 PM<br class="">
<b class="">To:</b> Bruno Borges <<a href="mailto:Bruno.Borges@microsoft.com" class="">Bruno.Borges@microsoft.com</a>>; <a href="mailto:hotspot-dev@openjdk.org" class="">hotspot-dev@openjdk.org</a> <<a href="mailto:hotspot-dev@openjdk.org" class="">hotspot-dev@openjdk.org</a>><br class="">
<b class="">Subject:</b> [EXTERNAL] Re: Discuss: Prevent jlink runtimes from reading _JAVA_OPTIONS</font>
<div class=""> </div>
</div>
<div class="BodyFragment"><font size="2" class=""><span style="font-size:11pt;" class="">
<div class="PlainText"><br class="">
On 08/05/2024 04:25, Bruno Borges wrote:<br class="">
> In this Reddit discussion [1], the user complains that a jlinked <br class="">
> runtime of their application, packaged with jpackage, was failing to <br class="">
> some degree due to the environment variable _JAVA_OPTIONS being set <br class="">
> somewhere else in the system.<br class="">
><br class="">
> I do agree with the user that a runtime shipped as a built-in <br class="">
> component of a Java-based standalone application should not have its <br class="">
> properties altered due to a magical environment variable.<br class="">
><br class="">
> I'd like to ask if it is reasonable to suggest that in the case of a <br class="">
> jlinked runtime, this should not happen.<br class="">
><br class="">
There was another thread about this a few days ago [1].<br class="">
<br class="">
-Alan<br class="">
<br class="">
[1] <a href="https://mail.openjdk.org/pipermail/hotspot-dev/2024-May/088245.html" class="">
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.openjdk.org%2Fpipermail%2Fhotspot-dev%2F2024-May%2F088245.html&data=05%7C02%7CBruno.Borges%40microsoft.com%7Cf45d571f168c44eb82b908dc6f196f34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638507402252381755%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ZCiuEnWjSdSqRLH0luxNRksK0wYm2IGSzDwuvSQkHFY%3D&reserved=0</a><br class="">
</div>
</span></font></div>
</div>

</div></blockquote></div><br class=""></div></body></html>