Error loading fxml files from a folder other than the bin folder

后端 未结 3 933
天命终不由人
天命终不由人 2020-12-06 23:14

I am a fairly new java programmer. I only have about five weeks of experience, starting from zero, and I am having problems getting javafx fxml files created in Scene Builde

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 23:23

    I was having the same problem. Looked inside my Jar (with Winzip) and see that the FXML file isn't there. Turns out my ANT script building the jar files was only including the *.class files from the bin directory of my project.

提交回复
热议问题