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

jpackage runs dpkg when building app image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 17, 21, 24
    • tools
    • None
    • generic
    • linux

      On Linux, when jpackage is invoked to build an app image, it attempts to run the "dpkg" command. This invocation is redundant and confusing.

      Run jpackage on Debian Linux:
      ---
      ~/jdk-23.0.2/bin/jpackage -t app-image --input hello/ --main-jar hello.jar --main-class App -d ~/foo --runtime-image cooked-runtime --verbose
      [17:27:25.300] Running dpkg
      [17:27:25.445] Command [PID: 19388]:
          dpkg --print-architecture
      [17:27:25.445] Output:
          amd64
      [17:27:25.455] Returned: 0

      [17:27:25.588] Creating app package: App in /home/asemenyu/foo
      [17:27:25.647] Using default package resource JavaApp.png [icon] (add App.png to the resource-dir to customize).
      [17:27:25.839] Succeeded in building Linux Application Image package
      ---

      "[17:27:25.300] Running dpkg" indicates "dpkg" is being executed. This is redundant for app image packaging.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: