Error Compiling JavaFX Application


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(
    at com.sun.javafx.application.LauncherImpl.access$000(
    at com.sun.javafx.application.LauncherImpl$
    at Source)
Caused by: java.lang.IllegalStateException: Location is not set.
    at javafx.fxml.FXMLLoader.load(
    at ch.makery.address.controler.MainApp.start(
    at com.sun.javafx.application.LauncherImpl$
    at com.sun.javafx.application.PlatformImpl$
    at com.sun.javafx.application.PlatformImpl$
    at Method)
    ... 1 more

please can you tell me what I'm missing.

4/23/2013 3:08:15 PM

Accepted Answer

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.

4/23/2013 3:31:40 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow