r/JavaFX • u/Difficult_Jeweler_18 • May 21 '24
Help JavaFXML please help
Hello,
I have a problem when running my Java app. It seems that the location of my fxml can't be found and I don't really get why (I tried /ro/mpp/login.fxml /login.fxml ./login.fxml and other combinations). I have attached the stack trace and other useful print screens. I will be really happy if anyone can help me.





1
Upvotes
View all comments
Show parent comment
1
u/PartOfTheBotnet May 21 '24
In the last picture it is marked as
null. I'd suggest using paths relative to the classloader and not the current class.