B4J Question javafx.fxml.LoadException: Page language not specified.

peacemaker

Expert
Licensed User
Longtime User
What does it mean ?
 

peacemaker

Expert
Licensed User
Longtime User
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 ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
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...
 

Attachments

  • parser.zip
    1.5 KB · Views: 342
Last edited:
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Yes, error is only when Release.
 

Attachments

  • Parser.jar
    211.9 KB · Views: 397
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Works fine here:
SS-2013-12-13_09.50.03.png


It fails to find the resource file inside the jar on your machine for some reason.

Can anyone else please try to download the jar file and run it (double click)?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Maybe Java installations ?
MaFu, what is your Java installed ?
I have installed the folowing ones:
 

Attachments

  • Clipboard01.png
    Clipboard01.png
    15.8 KB · Views: 467
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Updated, no changes ;(
Erel, what is your Java installations ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
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.

Now it cannot be reproduced :(
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Hmmm - really no ! your sample is OK when Released.
 
Last edited:
Upvote 0
Top