I am just starting out with JavaFX, and I am trying to build a simple application with a label, text field and button which, when clicked, sets the label\'s value to that of
For anyone who has this exact same problem in the future, as James_D and the other answer contributors mentioned, removing the "/" at the beginning of the path fixes the problem so use
FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindowView.fxml"));
instead of
FXMLLoader loader = new FXMLLoader(Main.class.getResource("/MainWindowView.fxml"));