FXML files not found in out directory: JavaFX

Answered

This issue seems to happen only after closing and reopening the project for the first time. When I click run 'Main', which is my run configuration pointing to my Main.java class, and the "out" directory is created as a result of the build process - none of my *.fxml files are copied to the "MODULE_DIR\out\production\MODULE\{packages}" directories. Now I was able to do this process yesterday with no issues. I am not sure if a setting got changed somewhere, but I double checked the compiler settings to make sure the resource patterns were as follow: [!?*.java;!?*.form;!?*.class;!?*.groovy;!?*.scala;!?*.flex;!?*.kt;!?*.clj]. I even tried, [!?*.java;!?*.form;!?*.class;!?*.groovy;!?*.scala;!?*.flex;!?*.kt;!?*.clj;*.fxml], to see if the *.fxml would tell IntelliJ to see FXML files as resources. I am getting stuck now.

 

Any recommendations?

By the way, when I run my build.xml through my gradle build my EXE works perfect. I am suspecting something is wrong with the run configurations.

 

Thanks.

0
1 comment

Please share a sample project to reproduce the problem.

0

Please sign in to leave a comment.