Remove launch-time JRE version selection [JEP-231]
Prior to Java 9, we could use the mJRE (Multiple JRE) feature to specify a specific JRE version, or range of versions, for launching our applications. We would accomplish this via the command-line option -version
or with an entry in the JAR file's manifest. The following flowchart illustrates what happens based on our selection:
This functionality was introduced with JDK 5 and was not fully documented in that release or any subsequent release prior to JDK 9.
The following specific changes were introduced with the Java 9 platform:
- The mJRE feature has been removed.
- The launcher will now produce an error whenever the
-version
command-line option is used. This is a terminal errors in that processing will not continue. - A warning will be produced if there is a
-version
entry in a JARs manifest. The warning will not stop execution.
Interestingly, the presence of a -version
entry in a manifest file will only generate a warning. This is by design, to...