-
Enhancement
-
Resolution: Fixed
-
P3
-
11, 14
-
b21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246120 | 13.0.4 | Mark Reinhold | P3 | Resolved | Fixed | b03 |
JDK-8241026 | 11.0.8 | Christoph Langer | P3 | Resolved | Fixed | b01 |
JDK-8233802 | 11.0.7-oracle | Mark Reinhold | P3 | Resolved | Fixed | b01 |
- If the resulting image is distributed to end users, it can be useful to change some of the vendor information, such as the vendor version string and the URLs for bug reports.
- In some cases, the virtual machine in the resulting image must be started with additional, baked-in command-line options.
We’ll address these needs via a set of new jlink plugins which implement the following options:
- --vendor-bug-url=<vendor-bug-url> overrides the vendor bug URL baked into the build. The value of the system property "java.vendor.url.bug" will be <vendor-bug-url>.
- --vendor-vm-bug-url=<vendor-vm-bug-url> overrides the vendor VM bug URL baked into the build. This value will be displayed in VM crash logs.
- --vendor-version=<vendor-version> overrides the vendor version string baked into the build, if any. The value of the system property "java.vendor.version" will be <vendor-version>. This value will be displayed in the output of java --version.
- --add-options=<options> prepends the specified <options> string, which may include whitespace, before any other options when invoking the VM in the resulting image.
Example usage:
$ jlink --add-modules java.base --output /tmp/jre --vendor-version='XyzzyVM 3.14.15' --vendor-bug-url=https://bugs.xyzzy.com/ --add-options='-Dfoo=xyzzy'
$ /tmp/jre/bin/java -XshowSettings:properties --version 2>&1 | grep -i xyzzy
foo = xyzzy
java.vendor.url.bug = https://bugs.xyzzy.com/
java.vendor.version = XyzzyVM 3.14.15
OpenJDK Runtime Environment XyzzyVM 3.14.15 (build 14-mr+0-cjdk-81d748451934)
OpenJDK 64-Bit Server VM XyzzyVM 3.14.15 (build 14-mr+0-cjdk-81d748451934, mixed mode)
$
- backported by
-
JDK-8233802 jlink plugins for vendor information and command-line options
-
- Resolved
-
-
JDK-8241026 jlink plugins for vendor information and command-line options
-
- Resolved
-
-
JDK-8246120 jlink plugins for vendor information and command-line options
-
- Resolved
-
- csr for
-
JDK-8232753 jlink plugins for vendor information and command-line options
-
- Closed
-
- relates to
-
JDK-8233291 [TESTBUG] tools/jlink/plugins/VendorInfoPluginsTest.java fails with debug or non-server VMs
-
- Resolved
-
-
JDK-8342035 jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url
-
- In Progress
-
-
JDK-8234696 tools/jlink/plugins/VendorInfoPluginsTest.java times out
-
- Resolved
-
-
JDK-8233137 runtime/ErrorHandling/VeryEarlyAssertTest.java fails after 8232080
-
- Closed
-
-
JDK-8232118 Add JVM option to enable JVMCI compilers in product mode
-
- Resolved
-
-
JDK-8237467 jlink plugin to save the argument files as input to jlink in the output image
-
- Resolved
-
-
JDK-8242154 Backport parts of JDK-4947890 to OpenJDK 11u
-
- Resolved
-