RFR: 8346719: Add relaunchers to the static JDK image for missing executables [v12]

Alan Bateman alanb at openjdk.org
Wed Nov 5 11:32:07 UTC 2025


On Wed, 5 Nov 2025 10:41:05 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

>> In the static JDK image, a single humongous java executable is generated, and no other launcher, such as javac. This makes it impossible to run our jtreg tests, which assume these are present.
>> 
>> The solution is fortunately simply: we just need to add a bunch of trivial launchers, which are thin wrappers that execute the main java binary, with the proper arguments. This will result in the same behavior as the normal dynamic launchers, only that we will need to take the detour of launching another process instead of calling directly into the JLI library.
>
> Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Use size_t for string lengths
>  - Also quote the executable name

Thanks, I assume you'll run all the tiers with build targets before integrating.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24380#pullrequestreview-3421402845


More information about the core-libs-dev mailing list