Integrated: 8359423: Improve error message in case of missing jsa shared archive
Matthias Baesken
mbaesken at openjdk.org
Sat Sep 13 20:23:25 UTC 2025
On Tue, 17 Jun 2025 08:17:19 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> In case we use `-Xshare:on` with additional flags (regarding coh or coops) and we have the corresponding jsa archive not present,
> we get this message/error :
>
>
> Error occurred during initialization of VM
> Unable to use shared archive.
>
>
> The error message could be a little improved, e.g. telling what jsa file is not present .
> For example
>
>
> ./images/jdk/bin/java -Xshare:on -version
> [0.017s][error][aot] Opening of static archive /build_linux/images/jdk/lib/server/classes.jsa failed
> Error occurred during initialization of VM
> Unable to use shared archive (unrecoverable archive loading error).
This pull request has now been integrated.
Changeset: ef291d2d
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ef291d2d5d5c6ef9767a218b0f8401a0fb911bb2
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8359423: Improve error message in case of missing jsa shared archive
Reviewed-by: mdoerr, asteiner, eastigeevich
-------------
PR: https://git.openjdk.org/jdk/pull/25846
More information about the hotspot-runtime-dev
mailing list