madx
madx

Reputation: 7203

EXCEPTION_ACCESS_VIOLATION after build a windows self-contained application with jdeps + jlink + jpackage

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.


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

Upvotes: 5

Views: 459

Answers (2)

cgraphic
cgraphic

Reputation: 23

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

Upvotes: 2

madx
madx

Reputation: 7203

I don't know if this solution will fit any other person who will meet the same problem, but for me it was fine to simply switch the JDK used to a Liberica JDK.

Upvotes: 1

Related Questions