jpackage signing fails with Mac jdk-14.0.1+7

Adam Carroll githubadam at
Fri May 1 15:13:37 UTC 2020

Using JDK 14.0.1 on the Mac, jpackage fails when signing is requested.
This problem was observed using AdoptOpenJDK.  I reported the problem to
that project and they suggested that  I report the problem here.


Mac OS Catalina v10.15.4




This problem was seen using AdoptOpenJDK 14.0.1+7.

Using the Mac signing option for jpackage ... --mac-sign ... I see the
following error (extra path information removed):

/var/folders/rh/...../ is already signed

However, if the --mac-sign option is removed, the build works without a

Reproducing the problem:

I've created a minimal, single-class JavaFX application along with the
necessary scripts to reproduce the problem:

First clone the repo:

$ git clone git at

Checkout the tag:

$ git checkout 1.0.0

Run the build (very fast as there's only one class):

$ ./gradlew clean build

Now run the jpackage command with the --mac-sign option as follows (this is
included in the file bin/

$ jpackage \
    --type dmg \
    --module-path 'build/modules' \
    --verbose \
    --add-modules javafx.controls \
    --input 'build/libraries' \
    --dest "build/bundle" \
    --name HelloFX \
    --main-jar 'jdk14-jpackage-mac.jar' \
    --main-class 'demo.HelloFX' \

You will now see a long error that includes the following:

/var/folders/rh/...jdk.incubator.jpackage..../ is already signed Command [codesign, -s, Developer ID Application: Your
Name Here (XXXXXXXXXX), -vvvv,
/var/folders/rh/...jdk.incubator.jpackage.../] exited with 1 code

If you now run the same command but without the --mac-sign option (or
alternatively use the script bin/, everything works
without problems.

You can find the original issue report to the AdoptOpenJDK repository here:

More information about the code-tools-dev mailing list