ALready deleted the project - it was just a Layout with 2 buttons, created by me anew. And this error was in
MainForm.RootPane.LoadLayout("Layout1") line.
But your "watermark" sample is OK, without this error, so i used it to go on.
What are required settings during Layout creation ?
Erel, please, have a look - why it is not compiled as release, but working as debug version.
I have
B4X:
Program started.
main._appstart (java line: 51)
java.io.FileNotFoundException: Layout1.fxml
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:182)
at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:122)
at peacemaker.parser.main._appstart(main.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at peacemaker.parser.main.start(main.java:33)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
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$3$1.run(WinApplication.java:73)
at java.lang.Thread.run(Thread.java:724)
Layout1.fxml is in Files project folder and inside the output .jar...
It was in the first project i started to do from the begining, and making Layout1 anew (just 2 buttons) - and this error was during Layout loading.
I deleted it, and used your sample project - here was no errors.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.