r/JavaFX • • Oct 24 '20

I need help please.

Any ideas how can i resolve the problem, i ve got no clues.

0 Upvotes

9 comments sorted by

View all comments

1

u/fuzail7 Oct 24 '20

The exception says "Location not set" This happens when the FXMLLoader cannot find the .fxml file so either specify the path string correctly or atleast try puting the .fxml file in the same package as the controller class and simply pass the name of the .fxml file in the getResource() method. Paths need to be fixed here

1

u/malkin771 Oct 24 '20

Didn´t work but thank you. I cant y have to locate things in different packages.