I am trying to develop my first javafx desktop app, but i foud myself in a deadlock. Firstly the program will read some excel files with sales, then create a database and summarise the total collected for 3 employees.But when i was creating a fxml file for the first scene, no matter what i did the compiler didn't locate the fxml file. After some research i found out that if i put the fxml inside a resouces folder it would work properly, but fater i had done that now i the fxml file doesn't recognize the Controller using the fx:controller option, probably because it isn't in the same directory anymore. i search some more and found a clue to how to fix it but could quite understand how to do it. in this question JavaFX and maven: NullPointerException: Location is required it says that it is possible to create a copy of the fxml files using the maven resources plugin Code:
<build>
...
<resources>
<resource>
<filtering>false</filtering>
<directory>src/main/java</directory>
<includes>
<include>**/*.fxml</include>
</includes>
</resource>
</resources>
...
But how can i do this? Where does the fxml files have to be the main directory folder or the resources folder? If i alter the data using scene builder of one does the other change as well? Do i need to add this maven resources plugin in the porn.xml?Here is some photos:
balanceus.fxml in the resource folder before trying fx:controller
running fine put without controller
And here is a link for the git hub with the files and with .txt of the complete error i get when tring to run:
Any Help is appreciated, also sorry for the bad english(not my first language).