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

"jpackage.exe" creates application launcher without Windows Application Manfiest

XMLWordPrintable

    • b22
    • windows

        ADDITIONAL OS VERSION INFORMATION:
        MS Windows 10 OS

        A DESCRIPTION OF THE PROBLEM:
        "jpackage.exe" tool generates Java application launchers which do not contain Windows Application Manifest.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM:
        1. Install JDK.
        2. Download JDK Demos and Samples archive which is currently publicly available for download as part of bundles related to JDK 8 update releases.
        https://www.oracle.com/java/technologies/downloads/#java8-demos-windows

        3. Unpack the downloaded archive with Demos and Samples.
        4. Create Java application launcher by the next command:

        "<JDK_HOME>\bin\jpackage.exe -t "app-image" -n "SwingSet2" -i "<DEMOS_AND_SAMPLES_DIR>\demo\jfc\SwingSet2" --main-class SwingSet2 --main-jar SwingSet2.jar"

        5. Check, if in the generated Java application launcher the Windows Application Manifest is present or absent. It can be done using "Mt.exe" tool from Microsoft Windows Software Development Kit (SDK) by the next command:

        "mt.exe -inputresource:<CURRENT_DIR>\SwingSet2\SwingSet2.exe;#1 -out:res1.manifest"

        If "mt.exe" fails with the error message "Failed to read the manifest from the resource of file "SwingSet2.exe". The specified resource type cannot be found in the image file.", then the bug is reproduced.

              asemenyuk Alexey Semenyuk
              alitvinov Anton Litvinov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: