Hello!
I was trying to make same sample app from
that tutorial, but i am getting that error:
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:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.datafx.controller.flow.FlowException: io.datafx.controller.FxmlLoadException: Can't create controller for class class sample.Controller
at io.datafx.controller.flow.FlowHandler.start(FlowHandler.java:149)
at io.datafx.controller.flow.Flow.startInStage(Flow.java:389)
at sample.Main.start(Main.java:11)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
... 1 more
Caused by: io.datafx.controller.FxmlLoadException: Can't create controller for class class sample.Controller
at io.datafx.controller.ViewFactory.createByController(ViewFactory.java:201)
at io.datafx.controller.flow.FlowHandler.start(FlowHandler.java:146)
... 11 more
Caused by: io.datafx.controller.FxmlLoadException: No FXML File specified!
at io.datafx.controller.ViewFactory.createLoader(ViewFactory.java:226)
at io.datafx.controller.ViewFactory.createByController(ViewFactory.java:173)
... 12 more
Any help please? What could be the reason? i DID specified valid fxml file. Everything is like in the tutorial, except classes names.
Thank you.