Integrated: 8363979: Add JDK bundle/image validation for --runtime-image option
Alexey Semenyuk
asemenyuk at openjdk.org
Fri Oct 10 02:45:11 UTC 2025
On Wed, 8 Oct 2025 17:51:59 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
> - Validate "libjli.dylib" file in the "lib" directory referenced with the `--runtime-image` option.
> - Split "ERR_MissingJLinkOptMacAppStore" error key into "error.invalid-runtime-image-bin-dir" and "error.invalid-runtime-image-bin-dir.advice"; moved new keys to mac-specific string property file.
> - Fix a couple of typos in RuntimeBuilderBuilder and WixSourceConverter classes.
>
> Error messages:
>
> Runtime image "ErrorTest/test.85b994e1/empty-runtime-image" is missing "lib/**/libjli.dylib" file
>
> Runtime image "ErrorTest/test.05a7421a/invalid-runtime-bundle" is missing "Contents/Home/lib/**/libjli.dylib" file
>
> Runtime image "/Users/alexeysemenyuk/jpackage-dev-runtime" should not contain "bin" folder
> Advice to fix: Use --strip-native-commands jlink option when generating runtime image used with --mac-app-store option
This pull request has now been integrated.
Changeset: 2311ec39
Author: Alexey Semenyuk <asemenyuk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2311ec394df9a096d6f7cd52b65ae2660dfe20b4
Stats: 196 lines in 10 files changed: 155 ins; 29 del; 12 mod
8363979: Add JDK bundle/image validation for --runtime-image option
Reviewed-by: almatvee
-------------
PR: https://git.openjdk.org/jdk/pull/27701
More information about the core-libs-dev
mailing list