-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying specific build directory location for FXML.load()? #157
Comments
Issue resolved. |
Hi En Hao, I am facing the same issue as you - my resources directory is not being built in the src/main folder. May I ask how you managed to solve this? |
Hi, I think my issue was caused by the fx:controller to be set to just MainWindow when in fact I packaged MainWindow within another sub directory. You can try setting the fx:controller to <yourpackages.....>.MainWindow |
Thanks for the comment En Hao, I have solved my issue at #213 . |
@LeeEnHao Hi EnHao, I am facing an issue regarding my fxml files too. They are created when the project is built, can I ask where exactly it is constructed? I'm not sure about this and have been trying to solve this issue for ages. |
Every time I run gradle build, the view directory which I placed the fxml files appears in
build/resources/main
instead ofbuild/classes/java/main
is there any way to change the gradle setting for this. It is causing the FXML.load() to load the fxml files in a directory that does not exist inbuild/classes/java/main
This is my source tree.
This is the build/out tree:
In the out tree the fxml file is out side of the project root which is have confirmed to be
build/classes/java/main
. This is causing the fxml.load to be unable to find/view/*.fxml
files. How do I resolve this?The text was updated successfully, but these errors were encountered: