Closed hohonuuli closed 2 years ago
I sent an email about this to core-libs-dev@openjdk.java.net
Can you try with ea version of JDK16 from https://download.java.net/java/early_access/alpine/32/binaries/openjdk-16-ea+32_linux-x64-musl_bin.tar.gz ?
Never Mind - I can reproduce with my build of jdk 17, so problem is still there - I will file a bug and fix.
@andyherrick Thanks Andy!
Link to this issue in the JDK bug tracker: https://bugs.openjdk.java.net/browse/JDK-8260335
VARS builds on JDK 17.
tl;dr
jpackage in JDK15 is adding an extra "Contents" in one of the paths in the built executable:
What are you trying to do?
Build a macOS app using jlink and jpackage. The app is compiled and built (via jlink) on Java 11. I'm using the jpackage tool in later versions of the JDK (e.g. jdk14 and now jdk15) to package it as a mac app. The source code for the application is at https://github.com/mbari-media-management/vars-annotation
Expected behaviour:
Using jdk14's jpackage, the app builds and runs as expected. Using jdk15's jpackage, the app builds but fails to launch
Observed behaviour:
After building with jdk15's jpackage the app fails to launch. The following appears in the system.log:
Jan 22 08:58:03 dharma com.apple.xpc.launchd[1] (org.mbari.vars.ui.101792[34511]): Service exited with abnormal code: 1
I ran the following sanity checks:
Sanity Check 1
I launched the jlink built app and confirmed it runs as expected using:
Sanity Check 2
I attempted to run the jpackage built executable on the command line using:
It fails with the following message:
The error is that Contents/Contents is wrong. It should only be a single "Contents" in the path. i.e. [...]/VARS Annotation.app/Contents/app/VARS Annotation.cfg
Any other comments:
Working JDK14 version:
JDK15 version that has the bug: