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

Magnus Ihse Bursie ihse at openjdk.org
Fri Jun 27 16:25:40 UTC 2025


On Fri, 27 Jun 2025 16:15:57 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 one additional commit since the last revision:
> 
>   Remove problemlisting

I thought it would be helpful to keep the `ProblemList-StaticJdk.txt` infrastructure around for the time being. It might have to be used again, since the static JDK is seeing a lot of changes. At some point we should probably remove it, though.

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

PR Comment: https://git.openjdk.org/jdk/pull/24380#issuecomment-3013619982


More information about the build-dev mailing list