I'm new to java
, I'm trying to build a JavaFX
Application on eclipse using e(fx)clipse
by following a tutorial and did exactly the same, the application is very simple, when I try to compile it I get bunch of errors which I don't even understand :
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
please can you tell me what I'm missing.
You have to set the location of the FXML
file in your loader, be sure that you are providing the correct PATH to your FXML
file.
PS: Netbeans is the best choice for a JavaFX
beginner, start Here.