Re:?==?utf-8?q? jpackage: Support building native Windows MSIs

Armin Schrenk armin.schrenk at skymatic.de
Mon Jun 30 18:04:17 UTC 2025


Cool. The changes can be found in https://github.com/infeo/jdk/commit/77c50367e3fd7d677bfe2e805be2feafa30b0a37.
Basically, the command line builder for wix3/wix4 is adjusted to set the arch flag to x64, x86 or arm64 depending on return values of some jdk.internal.util.Architecture::is[Architecture] methods. If the architecture is not supported by the wix Version, an IOException("Unsupported architecture") is thrown. I defined an package private enum to filter out already unsupported architectures.

@"Alexey Semenyuk" I've read the contribution guide. So, the next step would be finding a Sponsor?

Best regards,
Armin

Am Montag, Juni 30, 2025 17:59 CEST, schrieb Alexey Semenyuk <alexey.semenyuk at oracle.com>:

 
Hi Armin,

Your ARM64 MSI contribution/enhancement for the jpackage will be much 
appreciated.

- Alexey

On 6/30/2025 10:09 AM, Armin Schrenk wrote:
>
> Hello everyone,
>
> does jpackage support building native ARM64 MSI packages? Building an 
> jpackage MSI on Windows ARM64, the resulting package contains x64 DLLs.
>
> I looked further into the JDK code and apparently, the wix Command 
> builder (WixPipeline.java) only supports x86 or x64  (see 
> https://github.com/openjdk/jdk/blob/a84946dde4283fd423ef00ce3176bbe1985d7046/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WixPipeline.java#L211).
> According to the wix docs, aarch64 is supported since version 4.0: 
> https://docs.firegiant.com/wix/tools/wixexe/#build
>
> I already created a patched JDK locally, but maybe this can be a 
> contribution/enhancement for the JDK in general.
>
> Best regards,
>
> Armin Schrenk
>

 



 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250630/48d95477/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2759 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250630/48d95477/smime-0001.p7s>


More information about the core-libs-dev mailing list