title: Failed to load Glass factory class - OpenJDK OpenJFX on Windows
body: <p>I'm trying to run a JavaFX app on Windows. It runs fine on Ubuntu. But on Windows I'm getting the error &quot;Failed to load Glass factory class&quot;. A Class Not Found Exception.</p>
  <p><a href="https://i.stack.imgur.com/Q19Xa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q19Xa.png" alt="Failed to load Glass factory class" /></a></p>
  <p>edit...</p>
  <p>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.</p>