Closed tunedal closed 1 year ago
@tunedal - Do you have a small simple program that demonstrates this?
The attached zip file contains an example program (HelloSwing.java
) along with a WSH script (build.js
) which packages and installs the example program. After running the script with cscript build.js
there will be two desktop shortcuts:
HelloSwing.lnk
– Created by the jpackage installer. Exhibits the buggy behavior.ExpectedBehavior.lnk
– Created by the build.js script. Launches the JAR file using javaw.exe and does not exhibit the buggy behavior.Thank you - reported upstream at: https://bugs.openjdk.org/browse/JDK-8294706
Oops, I seem to have caused a duplicate in the OpenJDK bug tracker. I initially reported the issue to Oracle, before I knew about the Temurin bug reporting process, so JDK-8294699 is a duplicate of the same issue. Sorry about that.
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.
closing as reported upstream
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: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa
See also: https://stackoverflow.com/questions/7522685
Please provide steps to reproduce where possible
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 17.0.4.1 2022-08-12 OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1) OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, 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: OpenJDK17U-jdk_x64_windows_hotspot_17.0.4.1_1.msi
Did it work before?
Did you test with other Java versions?
Relevant log output
No response