<div dir="ltr"><div><div><div><div><div><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 6, 2023 at 10:39 AM Ron Pressler <<a href="mailto:ron.pressler@oracle.com">ron.pressler@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 5 Sep 2023, at 15:48, Peter Tribble <<a href="mailto:peter.tribble@gmail.com" target="_blank">peter.tribble@gmail.com</a>> wrote:<br>
> <br>
> <br>
> That would be a pretty normal scenario.<br>
> <br>
> A new version of the Java runtime could be pushed to a user by:<br>
> <br>
> * The OS vendor, in a patch or update<br>
> * If in an organization, by the organization's IT department<br>
> * Ditto by an organization's security team <br>
> * Installation of a different application that updates Java as a side-effect<br>
<br>
Sorry, I don’t understand. How *exactly* is your application launched so that it would use a different Java runtime when one was installed?<br></blockquote><div><br></div><div>Generally, my own applications simply call "java", so it gets whatever java happens to come<br></div><div>first in the PATH. Most of the other applications I've seen do the same; some pick up on<br></div><div>JAVA_HOME. (And there's the strange thing about default_java on a Mac which I've seen<br></div><div>cause entertainment.)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
By the way, we also speculate about how different users do different things. When it comes to feedback it’s, therefore, best to limit things to what you yourself experience. One concrete example of something you experience is much more valuable to us than four examples of things you think others may experience.<br></blockquote><div><br></div><div>There's no speculation involved. 30 years of being a systems administrator gives you lots of<br></div><div>experience. The scenarios I mentioned are ones I've repeatedly encountered in the field. (And<br>have stitched up java applications, to boot.)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> <br>
> And probably a number of others. The point is that virtually none of us live in a<br>
> perfect idealized world; we generally have to work under the assumption that our<br>
> code could be used in a variety of different environments, including different java<br>
> versions, and that we have no control whatsoever.<br>
> <br>
<br>
True, and that is why people wanted — and rightly so — to allow applications to better pick a Java runtime and control it. So we’ve worked for years on that and delivered a feature that allows any Java application to pick a runtime and configure it as it wishes (jlink). These days, if an application has difficulty choosing or configuring its runtime, it’s by choice. If lack of control over the runtime poses a problem for your application, why are you choosing not to control the runtime?<br>
<br>
— Ron</blockquote></div><br></div>It's not just my application; there are lots of other applications out there that end up<br></div>being run. Which means that what I can and cannot do is immaterial - it's what all the<br></div>other people developing and distributing java applications choose to do. And mostly,<br>they don't do much - using jlink is extremely rare in the real world.<br><br></div>There appears to be a considerable disconnect between the idealized world you're<br></div>envisioning, one in which the JEP makes absolute sense, and the harsh reality of<br></div>what happens in the chaotic, indeed anarchic, wider world.<br clear="all"><div><div><div><div><div><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/" target="_blank">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/" target="_blank">http://ptribble.blogspot.com/</a></div></div></div></div></div></div></div></div>