I'm running jdk 1.8_191
I created an JavaFX application.
I tested it in IDE, everything runs well.
I created an exe Artifact, I get errors when loading FXML's.
Solved it tho by putting my FXML files and Java files in one folder like this
used to put FXML files in that empty view folder and run my code like this
but I get errors only in generated exe Artifact. Runs smoothly in IDE (IntelliJ).
My question is why? I'd like to separate my FXML files and JAVA files for neatness and better readability. Why does it only work if both files are in the same folder in Artifact, but works separated in IDE? is this just the way it should be?
P.S. I've also read that I must place my FXML under "resources" folder but it didn't work as well (in Artifact). What am I missing? thanks!