Skip to content

JFileChooser causes Could not initialize COM: HRESULT=0x80010106 (Thread?) #693

Description

@cocoon

Using current latest NUGET 8.14.0 in NET 8 console app.

I try to run a jar that uses JFileChooser to let one open files.

This causes the following error:

Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106
        at java.lang.reflect.Constructor.newInstance(Constructor.java:413)
        at IKVM.Runtime.JNI.JNIEnv.ThrowNew(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2.initializeCom(Native Method)
        at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:585)
        at java.lang.Thread.run(Thread.java:978)

I could simply replicate it if I just try to create it in the csharp code like this:

using javax.swing;
JFileChooser fileChooser = new JFileChooser();

Any idea how to get it running?

I also found this bug report here, but could not see if that is in any way related.

https://bugs.openjdk.org/browse/JDK-8189938

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions