使用 jdeps + jlink + jpackage 构建 Windows 自包含应用程序后出现 EXCEPTION_ACCESS_VIOLATION

2024-02-13

我正在尝试构建一个捆绑包(独立的应用程序)windows using jdeps + jlink + jpackage.

在Mac上,使用相同的过程,我设法创建了(以下JPackageScriptFX https://github.com/dlemmermann/JPackageScriptFX作为参考)该项目的完全工作的独立“.app”图形编辑器 https://github.com/danielemaddaluno/graph-editor/tree/777ecd1dcc3c6a8adc68af5c7682a6419f06b7fa通过组合maven和一个使用的脚本jdeps + jlink + jpackage.

我预计相同的配置jdeps + jlink + jpackage安装后可以在 Windows 上运行wix 3.x https://wixtoolset.org/.

该过程工作正常并生成一个安装程序,但不幸的是,当我启动“.exe”文件时,出现以下错误。

  • 有关我使用的配置的更多详细信息,请参阅here https://github.com/eckig/graph-editor/issues/4.
  • 我使用的“bat”脚本是这样的:构建应用程序.bat https://github.com/danielemaddaluno/graph-editor/blob/777ecd1dcc3c6a8adc68af5c7682a6419f06b7fa/demo/build_app.bat.
  • 运行一个maven install on the 主要项目 https://github.com/danielemaddaluno/graph-editor/tree/777ecd1dcc3c6a8adc68af5c7682a6419f06b7fa在 Windows 上,可以复制该问题。

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=16672, tid=5124
#
# JRE version:  (15.0+36) (build )
# Java VM: OpenJDK 64-Bit Server VM (15+36, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  0x0000000000000000
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#

可以找到完整的“.log”打印here https://github.com/eckig/graph-editor/issues/4#issuecomment-710043454.


Copy zip.dll from {your app path}/runtime/bin/ to {your app path}.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用 jdeps + jlink + jpackage 构建 Windows 自包含应用程序后出现 EXCEPTION_ACCESS_VIOLATION 的相关文章

随机推荐