我正在尝试构建一个捆绑包(独立的应用程序)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.