This is a project with maven,please confirm maven is installed.Otherswise,maybe have a problem.
download this project,rename the project name,modify the groupId,artifactId,version.The last,import the package of Main.java once again.Finish.Open your new JavaFx project.