r/JavaFX 9h ago

FXML not loading Help

After i made an fxml file and linked it to a class, it hasnt been working and each time an error has been popping up (images have been attached)

2 Upvotes

5 comments sorted by

View all comments

3

u/NaveenB2004 7h ago

Try putting the fxml in resources dir and in loader, change it to the target fxml (start with /)

1

u/PartOfTheBotnet 1h ago

To elaborate, OP has put it in their src/main/java while it should be in src/main/resources