如何在 Windows 平台上使用 Install4j 中的 Amazon Corretto 创建 JRE 包

How to create JRE bundle using Amazon Corretto in Install4j on a Windows platform

我正在试用 install4j 并正在为捆绑了 JRE 的应用程序创建 EXE 和 DMG 文件。

我们选择使用Amazon Correto 8,因此需要捆绑其JRE。

这是 Amazon Correto 8 的 link: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html

我在 Windows 机器上安装了 install4j 并尝试为 EXE 和 DMG 创建捆绑的 JRE

使用https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/amazon-corretto-8.212.04.2-windows-x64-jdk.zip

创建windows版本没有问题

但是,当我尝试使用 https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/amazon-corretto-8.212.04.2-macosx-x64.tar.gz 为 DMG 文件创建它时,我遇到了以下错误。 error on windows

我也尝试在 Mac 上生成它,但仍然失败并出现不同的错误。error on mac

有没有一种方法可以使用 Amazon Correto Mac 版本为 DMG 创建捆绑的 JRE?

您只能在 Mac 上创建 macOS 包。

macOS 上的 Amazon Corretto JDK 似乎缺少 release 文件。尝试将其从 Windows 分发版复制到 Contents/Home 文件夹,然后应该会继续。