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