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
Perform the following operation
FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindowView.fxml")); Parent root = loader.load();
Remove / from in front of .fxml file name. I think it should work. It solved the same error for me.