<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 06/09/2023 12:36, Ron Pressler wrote:
<blockquote
cite="mid:696B2245-C930-4035-A192-5F25A3E05C53@oracle.com"
type="cite">
<pre wrap="">Why? You can now easily pick whichever runtime you want (a minimal one is only 40MB!) and not require the end user to install Java or even know that your application is written in Java. Also, the proposed change would have no impact on anyone using a client JRE (8 is the *highest* version for which a JRE is available).</pre>
</blockquote>
The application needs to run on Mac ARM64 machines (for example), so
requiring the user to use Java 8 is not an option. On some headless
NAS platforms the application is packaged with a minimal Java
runtime but desktop platforms with a graphical interface require
most of the full JDK.
<blockquote
cite="mid:696B2245-C930-4035-A192-5F25A3E05C53@oracle.com"
type="cite">
<pre wrap="">If you opt not to choose the runtime and the user updates the runtime, the warning will correctly indicate that the application will need to be updated in order to run on future runtimes.</pre>
</blockquote>
This sounds like a good idea except that the wording of the current
messages doesn't achieve this objective when the messages are seen
by a non-technical user. To achieve this objective without scaring
such a user, the messages should be something like this:<br>
- - - - - - - - - - - - - - - - - - - - - -<br>
This application is using the Java Native Interface (JNI).<br>
No action is required at the present time.<br>
It is possible that the application might need to be updated to run
on some future version of Java.<br>
- - - - - - - - - - - - - - - - - - - - - -<br>
<br>
The detailed messages that are currently proposed showing which
packages / modules / called methods / calling methods are involved
could be useful for developers, so there should be a command-line
option for a developer to to enable these. Something like this was
provided for "illegal access" warnings in Java 9.<br>
<br>
Simon<br>
</body>
</html>