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

peacemaker

Expert
Licensed User
Longtime User
What does it mean ?
 

aidymp

Well-Known Member
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...


Did this get solved? I too can run fine in debug, but get this java.io.FileNotFoundException: 1.fxml on compiling in release mode?
 
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
Do you get this error when you run it from the IDE?

Go to the files tab and press on the Sync option, maybe the file name case is incorrect.

I did try that! but still same error! infact I have just noticed every B4J program does it!

Yesterday My SSD (60days old) just died, I lost all my code as i was foolish, (But I will just rewrite it as i can improve it!) I have installed Windows 7 64bit, and java jdk, all B4J source works in debug mode, but non will load a *.fxml file!! in release mode?

[UPDATE] - I loaded some .jar files that i had saved from my previous setup and they run fine, so there is a problem somewhere in my setup of B4J

I have uninstalled B4J and just installed to C:\B4J but that's not done anything!

I have uninstalled the JDK (64bit) and installed JDK (32bit) as a test and that hasn't done anything either!

One thing I have noticed though is that when i uninstall B4J and reinstall it, it remembers the PATHS in the set paths menu? SO i figure it has saved a config in the registry or something? maybe deleting this would help?

My Log is

B4X:
Program started.
main._appstart (java line: 74)
java.io.FileNotFoundException: 1.fxml
    at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:180)
    at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:136)
    at b4j.example.main._appstart(main.java:74)
    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 b4j.example.main.start(main.java:36)
    at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
    at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:219)
    at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:182)
    at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:179)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
    at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
    at java.lang.Thread.run(Thread.java:745)

Any clues anyone?

Thanks
 
Last edited:
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
Any update on this as I have just formatted another machine 32bit win 7, installed B4J & JDK 8u40 on another machine, and am getting the same results?

Thanks

Aidy
 
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
Can you upload a jar file that is not working on your computer?

Hi Erel, I noticed that any files i had downloaded before the Format & Reinstall of windows did not work! but projects downloaded from the net did! It appears that something is wrong with the folders, I copied all the files and made new folders - To duplicate the project and It now all works! my be folder permissions or something! but had me worried! ;) All sorted now! some sort of folder problem!

Thanks

Aidy
 
Upvote 0
Top