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

jpackage failed when including the --mac-sign directive

XMLWordPrintable

    • generic
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      osx jdk25


      A DESCRIPTION OF THE PROBLEM :
      including --mac-sign in th jpackage command causes the codesign phase to crash

      the -vvvvv in the commands to codesign look odd.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      /jpackager -i xxxxx --mac-sign --mac-app-category games --mac-app-store --mac-entitlements xxxxx.entitlements --main-jar xxxxx.jar -t "app-image" --app-version $1 --copyright "DEV_NAME" --description "desktop launcher for xxxxx.net" --icon xxxxx.icns --name "xxxxx" --mac-package-name "xxxxx.net" --mac-package-identifier "com.xxxxx.launcher"


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      normal exit

      ACTUAL -
      yyyyy.entitlements: cannot read entitlement data
      java.io.IOException: Command [/usr/bin/codesign, -s, 3rd Party Mac Developer Application: XXXXX, -vvvv, --timestamp, --options, runtime, --prefix, YYYYY., --entitlements, yyyyy.entitlements, /Users/admin/Desktop/newmac/appstore april 2025/yyyyy.app/Contents/app/XXXXX.jar] exited with 1 code


      ---------- BEGIN SOURCE ----------
      /jpackager -i xxxxx --mac-sign --mac-app-category games --mac-app-store --mac-entitlements xxxxx.entitlements --main-jar xxxxx.jar -t "app-image" --app-version $1 --copyright "DEV_NAME" --description "desktop launcher for xxxxx.net" --icon xxxxx.icns --name "xxxxx" --mac-package-name "XXXXX.net" --mac-package-identifier "com.xxxxx.launcher"

      ---------- END SOURCE ----------

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

              Created:
              Updated:
              Resolved: