RFR: 8359423: Improve error message in case of missing jsa shared archive [v6]

Martin Doerr mdoerr at openjdk.org
Fri Sep 12 08:11:43 UTC 2025


On Fri, 12 Sep 2025 07:43:58 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).
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add hint suggested by mdoerr

Thanks!

-------------

Marked as reviewed by mdoerr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25846#pullrequestreview-3215305916


More information about the hotspot-runtime-dev mailing list