java.lang.NullPointerException: Location is required. code example Example: javafx location is required Click to copyMoving the file to the main/resources directory worked.