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

JPackage app-image exe launches multiple exe's in JDK 17+

XMLWordPrintable

    • b16
    • generic
    • windows

        A DESCRIPTION OF THE PROBLEM :
        The following Java program and jpackage command create an app-image which launches multiple exe's on Windows 10. This does not happen before JDK 17. The same code and command work as expected on JDK 16, resulting in a single instance of Main.exe in the Task Manager Details.

        import javax.swing.*;

        public class Main {
            public static void main(String[] args) {
                JDialog dialog = new JDialog();

                dialog.setVisible(true);
            }
        }

        jpackage --type app-image --input jpackage_test_jar --dest install/tmp --main-jar jpackage_test.jar --main-class Main

        REGRESSION : Last worked in version 16


        FREQUENCY : always


              asemenyuk Alexey Semenyuk
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: