<div dir="ltr">I have recently upgraded from Java 18 to Java 21, and noticed that there has been a change in jpackage which is causing signtool (the Microsoft code signing tool) to fail when signing the installer. Even though the installer .exe can be run on the system, the signtool command fails with: <div><br></div><div>SignTool Error: SignedCode::Sign returned error: 0x800700C1<br></div><div><br></div><div>This rather cryptic message refers to <a href="https://markcz.wordpress.com/2013/01/26/signtool-exe-returned-error-0x800700c1/">ERROR_BAD_EXE_FORMAT</a>. Note that the same build run with Java 18 produces an .exe installer which does not have this problem.</div><div><br></div><div>If I compare the .exe produced by Java 21 with that produced by Java 18 with dumpfile and pestudio, I notice two differences:</div><div><br></div><div>1. There is a 'version' section containing application name and version information which is no longer present</div><div>2. The linker version has changed from 1.27 to 1.37</div><div><br></div><div>Any assistance is appreciated.</div><div><br></div><div>Craig</div><div><br></div><div><br></div><div><br></div></div>