I'm attempting to run a simple JavaFX shown here;
@Override
public void start(Stage stage) throws Exception {
Group root = new Group();
Scene scene = new Scene(root, Color.WHEAT);
stage.setTitle("Testing");
stage.setWidth(400);
stage.setHeight(400);
stage.setScene(scene);
stage.show();
}
}
My VMOptions (stored in the default launch.json file) are as follows;
{
"type": "java",
"name": "Launch Main",
"request": "launch",
"vmArgs": "--module-path C:/Program Files/Java/javafx-sdk-17.0.1/lib --add-modules=javafx.controls,javafx.fxml",
"mainClass": "Main",
"projectName": "Dump_661a224e"
}
However, I keep getting the following
I've followed countless tutorials and ensured that all the syntax and file locations are correct. Any help is appreciated.