I have created a simple JavaFX
application.
It has two pa
Try
Parent root = FXMLLoader.load(getClass().getResource("/jfxtest2/Screen.fxml"));
You need to use
getClass().getClassLoader().getResource("/jfxtest2/Screen.fxml")
For me nothing worked besides this:
Parent root = FXMLLoader.load(getClass().getResource("..//jfxtest2//Screen.fxml"));