错误编译JavaFX应用程序
我是新来java
,我试图建立在使用e(fx)clipse
通过以下tutorial日食一个JavaFX
应用程序并没有完全一样的,应用程序是非常简单的,当我尝试编译它,我得到一堆我甚至不明白的错误:错误编译JavaFX应用程序
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Location is not set.
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2021)
at ch.makery.address.controler.MainApp.start(MainApp.java:29)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:67)
... 1 more
请你能告诉我我失踪了什么。
我把它修好了,感谢您的帮助,关于NetBeans,确实如此,但我有点不得不使用Eclipse,在Eclipse上启动JavaFx的教程,我会坦克 – AymenDaoudi 2013-04-23 15:54:36
Oueld Kara焊接9ahba,稍后我会更新我的答案以获得更多教程链接。 – tarrsalah 2013-04-23 15:58:22
哈哈我看到你有什么我的意思是“被迫使用eclipse”,我甚至担心他不会因为我使用JavaFx而感到高兴,反正这个教程链接是thx – AymenDaoudi 2013-04-23 16:07:45
已经回答了这个问题: [here](http://stackoverflow.com/a/13806031/2072528) – Kalaschni 2013-04-23 15:12:16
可能是[从bin文件夹以外的文件夹加载fxml文件时出错](http:/ /stackoverflow.com/questions/13785919/error-loading-fxml-files-from-a-folder-other-than-the-bin-folder) – jewelsea 2013-04-23 21:31:53