javajavafxopenjfx

Failed to load Glass factory class - OpenJDK OpenJFX on Windows


I'm trying to run a JavaFX app on Windows. It runs fine on Ubuntu. But on Windows I'm getting the error "Failed to load Glass factory class". A Class Not Found Exception.

Failed to load Glass factory class

edit...

It seems JavaFX jars are not cross platform. Compiling on Linux doesn't create a jar that runs on Windows. Compiling on Windows and including the JavaFX jars in the compile creates a jar that runs even without JavaFX installed.


Solution

  • You can try using Azul's Zulu OpenJDK builds, which bundle OpenJFX, even for JDK 11.

    enter image description here