Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8306977

[macos 13.3] JPackage created apps will not open once downloaded

XMLWordPrintable

    • x86_64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      OSx 13.31 (Ventura)
      M1 silicon
      Java 17, 20

      A DESCRIPTION OF THE PROBLEM :
      In Mac OSx 11 (Big Sur) I was able to build and sign a dmg using JPackage. The dmg and app could be downloaded and run on Big Sur and OSx 12 (Catalina) without problems. Now in OSx 13 (Ventura), using the exact same command for JPackage, when the app is run there is a message from the Mac Gatekeeper that says: XXX can't be opened because Apple cannot check it for malicious software.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      jpackage --type dmg --dest staging --name XXX --input mac_files --main-jar my.jar --icon myicon.icns --app-version 2.0 --vendor YYYY --verbose --mac-sign --mac-signing-key-user-name ZZZZZZZ --mac-signing-keychain /Library/Keychains/System.keychain

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A signed application that gets past the Mac Gatekeeper.
      ACTUAL -
      The Mac Gatekeeper blocks the application with the message: XXX can't be opened because Apple cannot check it for malicious software.

      CUSTOMER SUBMITTED WORKAROUND :
      This can only be circumvented by control clicking the app and selecting "run", which is not a great user experience.

            almatvee Alexander Matveev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: