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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: