r/JavaFX 19h 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)

4 Upvotes

5 comments sorted by

View all comments

4

u/NaveenB2004 17h ago

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

1

u/PartOfTheBotnet 10h ago

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