-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
9.0.1
-
x86_64
-
other
FULL PRODUCT VERSION :
Java 9.0.1
ADDITIONAL OS VERSION INFORMATION :
Windows 10 (Fall Creators Update)
A DESCRIPTION OF THE PROBLEM :
The previous QA engineer failed to build the APPX package and reproduce the issue because he didn't enable the Windows developer settings:
https://bugs.openjdk.java.net/browse/JDK-8189938?focusedCommentId=14128014&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14128014
I have updated the test case on GitHub that allows anyone to easily reproduceJDK-8189938 with additional information about what settings must be enabled first.
Prerequisites:
* Windows 10 Fall Creators Update
* JDK 9
* Apache Ant
* PowerShell must be enabled and allowed to run scripts via Settings ➔ Update & Security ➔ For developers ➔ PowerShell ➔ Change execution policy ... ➔ Apply.
* Developer mode must be enabled via Settings ➔ Update & Security ➔ For developers ➔ Developer mode to allow unsigned APPX packages.
The test project can be found here:
https://github.com/rednoah/JDK-8189938
REGRESSION. Last worked in version 8u152
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
You can clone this GitHub project and follow the instructions in the README file:
https://github.com/rednoah/JDK-8189938
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It would be nice if I could use Java 9 for deploying Java Swing applications on the Windows Store so I can support users with HiDPI screens.
ACTUAL -
Java 9 Swing applications cannot viably deployed on the Windows Store because anything that requires COM doesn't work, i.e. file dialogs, drag-n-drop, etc.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106
at java.desktop/sun.awt.shell.Win32ShellFolderManager2.initializeCom(Native Method)
at java.desktop/sun.awt.shell.Win32ShellFolderManager2$ComInvoker$1.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Source code for a test case is here:
https://github.com/rednoah/JDK-8189938
Since the app must be bundled as APPX package, this test project consists primarily of build files. You can reproduce the issue by following the README file.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
There is no work around other than sticking to Java 8, but that one doesn't support HiDPI screens, so it's not viable anymore for a large amount of customers that have 4K screens and end up with broken UI layouts.
SUPPORT :
YES
Java 9.0.1
ADDITIONAL OS VERSION INFORMATION :
Windows 10 (Fall Creators Update)
A DESCRIPTION OF THE PROBLEM :
The previous QA engineer failed to build the APPX package and reproduce the issue because he didn't enable the Windows developer settings:
https://bugs.openjdk.java.net/browse/JDK-8189938?focusedCommentId=14128014&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14128014
I have updated the test case on GitHub that allows anyone to easily reproduce
Prerequisites:
* Windows 10 Fall Creators Update
* JDK 9
* Apache Ant
* PowerShell must be enabled and allowed to run scripts via Settings ➔ Update & Security ➔ For developers ➔ PowerShell ➔ Change execution policy ... ➔ Apply.
* Developer mode must be enabled via Settings ➔ Update & Security ➔ For developers ➔ Developer mode to allow unsigned APPX packages.
The test project can be found here:
https://github.com/rednoah/JDK-8189938
REGRESSION. Last worked in version 8u152
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
You can clone this GitHub project and follow the instructions in the README file:
https://github.com/rednoah/JDK-8189938
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It would be nice if I could use Java 9 for deploying Java Swing applications on the Windows Store so I can support users with HiDPI screens.
ACTUAL -
Java 9 Swing applications cannot viably deployed on the Windows Store because anything that requires COM doesn't work, i.e. file dialogs, drag-n-drop, etc.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106
at java.desktop/sun.awt.shell.Win32ShellFolderManager2.initializeCom(Native Method)
at java.desktop/sun.awt.shell.Win32ShellFolderManager2$ComInvoker$1.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Source code for a test case is here:
https://github.com/rednoah/JDK-8189938
Since the app must be bundled as APPX package, this test project consists primarily of build files. You can reproduce the issue by following the README file.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
There is no work around other than sticking to Java 8, but that one doesn't support HiDPI screens, so it's not viable anymore for a large amount of customers that have 4K screens and end up with broken UI layouts.
SUPPORT :
YES
- duplicates
-
JDK-8189938 Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106
- Closed