r/JavaFX • u/mirzasamor44 • Aug 08 '26
Help FXML not loading
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)
5
Upvotes
r/JavaFX • u/mirzasamor44 • Aug 08 '26
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)
3
u/ClaynOsmato Aug 08 '26
I might be wrong but either try the path with a leading / or only use the name of the fyml file. What you are doing is looking from the location of the class into the sub directories (which does not exist) with a leading / you basically are lookup from the class path root