I'm trying to load an FXML for my App just like I did in another project. Difference: doesn't work. I get an "IllegalStateException: Location is required"
I tried to move the file to a different location but that didn't work either. I checked the URL (tmp) with the debugger. It points to the correct file.
URL tmp = getClass().getClassLoader().getResource("FXMLDocument.fxml");
FXMLLoader baseLoader = new FXMLLoader(tmp);
Parent root = baseLoader.load();
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();