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

Error creating runtime package on macos without mac-package-identifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 16
    • tools
    • b12

      When building a java runtime image with simple command:
      jpackage --type {dmg, pkg} --name runtime-17 --runtime-image $JDK-HOME
      if creating dmg, you get a null pointer exception, if creating a pkg you get a PackagerException saying the identifier could not be extracted from the app-image.
      The help text for --mac-package-identifier even says it defaults to the main class name, which is fine if you are creating a dmg or pkg of an application.
      When creating a runtime installer, it should default to the installer name (not the non-existant main-class name), instead of throwing these exceptions.

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: