打包为 msix 的 install4j 安装程序出现捆绑 JRE 错误

发布于 2025-01-15 09:10:27 字数 462 浏览 2 评论 0原文

我们使用 install4j 创建一个捆绑 JRE 的安装程序。然后,我们使用 MSIX 打包工具创建 .msix 安装程序,以在 Microsoft App Store 上发布。

当我们安装 .msix 包进行测试并尝试运行该应用程序时,我们收到以下错误:

“The JVM found at .\jre is Damaged. Please reinstall or Define EXE4J_JAVA_HOME to point to an Installed 64-bit JDK or JRE”

请注意,JRE 与安装程序捆绑在一起,它实际上安装在安装文件夹下名为“jre”的文件夹中。

当我们从 .exe 安装程序安装时,一切正常,只有在我们使用 MSIX 打包工具创建 .msix 安装程序后才会出现此问题。我们已经检查了所有已安装的文件,一切看起来都很好,但启动器将无法运行。

有人见过这个问题吗?有解决方案或解决方法吗?

We create an installer with install4j that bundles the JRE. We then use the MSIX Packaging Tool to create a .msix installer, to publish on the Microsoft App Store.

When we install the .msix package for testing and try to run the application, we get the following error:

"The JVM found at .\jre is damaged. Please reinstall or define EXE4J_JAVA_HOME to point to an installed 64-bit JDK or JRE"

Note that the JRE is bundled with the installer, and it is actually installed in a folder called "jre" under the installation folder.

When we install from the .exe installer, everything works fine, this problem only happens after we create a .msix installer with the MSIX Packaging Tool. We've checked all the installed files and everything looks fine, but the launcher will not run.

Has anybody seen this problem? And is there a solution or workaround?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文