Java NoSuchMethodException - method does exist in class

早过忘川 提交于 2019-12-02 10:01:40

This will solve your problem, install e(fx)clipse this plugin for eclise but i dont know for intellij ,or add facet for your application as javafx application, if you add facet you dont need main method , or use like this

public class DesktopApplication extends Application {

    @Override
    public void start(Stage primaryStage) {
        BuildGraphicalUserInterface ui = new BuildGraphicalUserInterface();
        ui.initStage(primaryStage);
    }

   public static void main(String[] args) {
       launch(args);
   }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!