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

EXE files created by jpackage do not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 14, 15, 16
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux, windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10, OpenJDK15

      A DESCRIPTION OF THE PROBLEM :
      Simple EXE created by jpackage prints blank line instead of "Hello World!" as expected.

      Also of note is that applauncher.dll is no longer present in builds created by jpackage in JDK15. Not sure if this omission is intentional.

      REGRESSION : Last worked in version 14.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      mkdir src\hello

      create src/module-info.java file as follows:
      module hello {
      }

      create src/hello/Main.java file as follows:
      package hello;
      public class Main {
        public static void main(String[] args) {
          System.out.println("Hello World!");
        }
      }

      openjdk-15_windows-x64_bin\jdk-15\bin\javac -d target/classes src/module-info.java src/hello/Main.java
      openjdk-15_windows-x64_bin\jdk-15\bin\jar --create --file target/hello.jar --main-class hello.Main -C target/classes .
      openjdk-15_windows-x64_bin\jdk-15\bin\java --module-path target/hello.jar --module hello
      openjdk-15_windows-x64_bin\jdk-15\bin\jlink --module-path target/hello.jar --add-modules hello --output runtime
      openjdk-15_windows-x64_bin\jdk-15\bin\jpackage --type app-image --name hello --dest package -p target/hello.jar -m hello
      hello\hello.exe


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Hello World!
      ACTUAL -
      Blank line displayed when hello\hello.exe is run

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: