How to solve the “Graphics Device initialization failed for : d3d, sw” Problem

Download the JavaFX Windows SDK using the link below

https://gluonhq.com/products/javafx/

and use the options below in VM argument’s when running FX Application

-p $ModuleFileDir$/lib/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.base,javafx.fxml,javafx.graphics,javafx.media,javafx.web --add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED

Note: Don’t change anything in the downloaded folder: use as it is. The DLL files are important; if the DLL files are missing then the above error pops up.

Leave a Comment