-
Bug
-
Resolution: Fixed
-
P3
-
16, 17, 21, 23, 24
-
b06
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8349486 | 24.0.2 | Severin Gehwolf | P3 | Resolved | Fixed | master |
JEP 493 introduced the possibility to have a JDK without JMODs (linkable runtime). JDK builds with JEP 493 enabled don't include JMODs and has some restrictions, such as jdk.jlink cannot be included in a target runtime. Thus, this results in failures such as this one when attempting to use jpackage on a JEP 493 enabled JDK:
$ jpackage --dest test/output2 --name JLinkOptionsTest --input test/input --type app-image --module-path ./test/input --main-jar hello.jar --main-class com.other.Hello
jlink failed with: Error: This JDK does not contain packaged modules and cannot be used to create another image with the jdk.jlink module
Since jpackage by default uses an ALL-DEFAULT token when generating a runtime via jlink, the automatic service binding is problematic as that includes jdk.jlink module since it provides tools such as jlink and jmod via the ToolProvider API.
- backported by
-
JDK-8349486 Update jpackage to not include service bindings by default
-
- Resolved
-
- csr for
-
JDK-8346379 Update jpackage to not include service bindings by default
-
- Closed
-
- relates to
-
JDK-8345573 Module dependencies not resolved from run-time image when --limit-module is being used
-
- Resolved
-
-
JDK-8346434 Add test for non-automatic service binding
-
- Resolved
-
-
JDK-8333799 JEP 493: Linking Run-Time Images without JMODs
-
- Closed
-
-
JDK-8346739 jpackage tests failed after JDK-8345259
-
- Resolved
-
-
JDK-8347124 Clean tests with --enable-linkable-runtime
-
- Resolved
-
-
JDK-8311302 Implement JEP 493: Linking Run-Time Images without JMODs
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk24u/ba7b3c24
-
Commit(master) openjdk/jdk/85ed78c0
-
Review(master) openjdk/jdk24u/37
-
Review(master) openjdk/jdk/22644