我是新來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
請你能告訴我我失蹤了什麼。
已經回答了這個問題: [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