I had the same problem. It's a simple problem of not specifying the right path.
Right click on the on your .fxml
file and select properties (for those using eclipse won't differ that much for another IDE) and then copy the copy the location starting from /packagename
till the end and that should solve the problem