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

jpackage: Busy cursor remains after application has launched



    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • tools
    • None
    • x86_64
    • windows_10


      Reproducer attached.

      ### Please provide a brief summary of the bug

      When an application is packaged for Windows with jpackage and then launched from the desktop icon or start menu (using the launcher created by jpackage) the mouse cursor continues showing a busy indicator for several seconds after the application has finished launching and displayed its main window.

      It might be because Windows is waiting for the launched process to call GetMessage:

      See also: https://stackoverflow.com/questions/7522685

      ### Please provide steps to reproduce where possible

      1. Take any simple Swing application (that will launch relatively quickly).
      2. Package the application for Windows using jpackage with the "--win-shortcut" option.
      3. Install the packaged application.
      4. Launch the application from the desktop using the installed shortcut.

      ### Expected Results

      The mouse cursor should have stopped showing the busy indicator, i.e. should have turned into a normal mouse cursor, when the application window is displayed.

      ### Actual Results

      The mouse cursor continues showing the busy indicator for several seconds after the application has finished launching and is displaying its main window.


      ### What Java Version are you using?

      openjdk 2022-08-12 OpenJDK Runtime Environment Temurin- (build OpenJDK 64-Bit Server VM Temurin- (build, mixed mode, sharing)

      ### What is your operating system and platform?

      Microsoft Windows [Version 10.0.19044.2006]

      ### How did you install Java?

      The MSI installer from adoptium.net:

      ### Did it work before?

      It works when the JAR file is launched using javaw.exe.

      ### Did you test with other Java versions?

      The problem also occurs with Azul's JDK: zulu17.36.17-ca-jdk17.0.4.1-win_x64.msi


        Issue Links



              Unassigned Unassigned
              karianna Martijn Verburg
              0 Vote for this issue
              2 Start watching this issue