temurin-build: [JDK 24] jlink fails on Windows/Mac with ' has been modified' error
Using JLink with JDK 24 fails with:
Error: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\24.0.0-ea.24.0.ea\x64\bin\j2pkcs11.dll has been modified
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 38 (31 by maintainers)
Thanks. I’ll add that to my TODO.
Linux is OK. The basic
jdk/tools/jlinktests pass.Those are all jpackage tests. I’ll look into those. That’s more of an upstream task.
I was able to build JREs with jlink for 24+28. Thank you for your diligence and support! 🎁
We have one. @sefroberg is supposed to contribute it to aqa-tests. He wanted the do that during summer, but the interruption on container work-flow delayed it.
@smlambert Do we have some basic
jlinktests that run on Temurin builds? A simple smoke test like runningjlink --add-modules java.base --output testimageshould reproduce this issue and serve as a regression test. If so I can work on that. I suppose the regular smoke tests run after signing on Windows/Mac?The files within the zips are also signed. The files that the MSI and zip lays down on the users’ machine should be identical.
Yep that’s expected - the change was made between +23 and +24 so will affect later versions too until we have a resolution
@sxa we are doing nasty stuff in rpms. We build unstripped portables, and then strip and repack them. That was the reason for
...has been modifiederror. Regenerating jmods also on stripped form was the cure, thats why the issue it triggered the bell.