使用 jdeps + jlink + jpackage 构建 Windows 自包含应用程序后的 EXCEPTION_ACCESS_VIOLATION [英] EXCEPTION_ACCESS_VIOLATION after build a windows self-contained application with jdeps + jlink + jpackage

查看:75
本文介绍了使用 jdeps + jlink + jpackage 构建 Windows 自包含应用程序后的 EXCEPTION_ACCESS_VIOLATION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 jdeps + jlink + jpackage<为 windows 构建一个包(自包含应用程序)/代码>.

在 mac 上,使用相同的程序,我设法创建(按照 JPackageScriptFX 作为参考)一个完全独立的.app"对于这个项目 graph-editor 通过 maven 的组合code> 和一个使用 jdeps + jlink + jpackage 的脚本.

我希望 jdeps + jlink + jpackage 的相同配置在安装 wix 3.x.

该过程运行良好并生成安装程序,但不幸的是,当我启动.exe"程序时出现以下错误.文件.


<预><代码>## Java 运行时环境检测到一个致命错误:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=16672, tid=5124## JRE 版本: (15.0+36) (build )# Java VM:OpenJDK 64 位服务器 VM(15+36,混合模式,分层,压缩 oops,g1 gc,windows-amd64)# 有问题的框架:# C 0x0000000000000000## 不会写入核心转储.默认情况下,客户端版本的 Windows 上不启用小型转储#

完整的.log"打印可以在这里找到.

解决方案

Copy zip.dll from {your app path}/runtime/bin/{您的应用路径}.

I'm trying to build a bundle (self-contained app) for windows using jdeps + jlink + jpackage.

On mac, with the same procedure, I managed to create (following JPackageScriptFX as reference) a fully working self-contained ".app" for this project graph-editor through a combination of maven and a script which uses jdeps + jlink + jpackage.

I expected that the same configurations for jdeps + jlink + jpackage would have worked on windows after the installation of wix 3.x.

The procedure works fine and produces an installer, but unfortunately I get the error below when I launch the ".exe" file.

  • More details about my configurations that I used can be found here.
  • The "bat" script that I used is this one: build_app.bat.
  • Running a maven install on the main project on a windows it's possible to replicate the problem.

#
# 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
#

The full ".log" print can be found here.

解决方案

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

这篇关于使用 jdeps + jlink + jpackage 构建 Windows 自包含应用程序后的 EXCEPTION_ACCESS_VIOLATION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆