javafxmlLoader location is required code example Example: javafx location is required Moving the file to the main/resources directory worked.