新建一个Java Project 在之上新建一个Package 右击后选择Properties 再选择Java bulid path 把javafx的包加进去 然后是你编的类 要extends Application 类体中编写start函数 编写完就可以运行