Giter Club home page Giter Club logo

jdk-8189938's Introduction

Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106

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.

Notes

During the first build get-java.ps1 is used to fetch the latest JRE. This may take a few minutes. This JRE is bundled with the APPX package.

Test Case

# Clone code
git clone https://github.com/rednoah/JDK-8189938.git
cd JDK-8189938
# Build and install
ant clean appx install
# Run
JDK8189938

This will launch the sample application via the UWP Desktop Bridge. Clicking on Select File should open a JFileChooser window but instead deadlocks the EDT and freezes the application.

Screenshot

Solution

It took much effort not to write what I'm thinking about VS 2013 right now.

This strange bug has been thoroughly investigated by Matthias Bläsing (Super Special Thanks!!). The solution is to replace the Visual C++ runtime libraries included in JDK9 / VS2013 with patched ones.

jdk-8189938's People

Contributors

rednoah avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.