D dpenner New Member Licensed User Longtime User Dec 13, 2014 #1 I am just getting started with B4J although been using B4A for awhile. This is the code that is in the log on the left when I try to compile the code. Thanks in advance for any help. I'll include both the b4j file and the .fxml file. Program started. Error occurred on line: 24 (main). javafx.fxml.LoadException: Invalid property. at javafx.fxml.FXMLLoader$PropertyElement.<init>(FXMLLoader.java:1169) at javafx.fxml.FXMLLoader.createElement(FXMLLoader.java:2380) at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2353) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2172) at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:137) at b4j.example.main._appstart(main.java:76) 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.shell.Shell.runMethod(Shell.java:563) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:224) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156) 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.ShellBA.raiseEvent2(ShellBA.java:82) at anywheresoftware.b4a.BA.raiseEvent(BA.java:84) at b4j.example.main.start(main.java:35) 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) Attachments first_test.zip first_test.zip 16 KB · Views: 370
I am just getting started with B4J although been using B4A for awhile. This is the code that is in the log on the left when I try to compile the code. Thanks in advance for any help. I'll include both the b4j file and the .fxml file. Program started. Error occurred on line: 24 (main). javafx.fxml.LoadException: Invalid property. at javafx.fxml.FXMLLoader$PropertyElement.<init>(FXMLLoader.java:1169) at javafx.fxml.FXMLLoader.createElement(FXMLLoader.java:2380) at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2353) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2172) at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:137) at b4j.example.main._appstart(main.java:76) 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.shell.Shell.runMethod(Shell.java:563) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:224) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156) 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.ShellBA.raiseEvent2(ShellBA.java:82) at anywheresoftware.b4a.BA.raiseEvent(BA.java:84) at b4j.example.main.start(main.java:35) 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)
stevel05 Expert Licensed User Longtime User Dec 13, 2014 #2 Works here, it looks like you are probably running SceneBuilder 2 against java 7 javac, in which case you need to use the javac file from java 8 (configured in the IDE under tools configure paths). Upvote 0
Works here, it looks like you are probably running SceneBuilder 2 against java 7 javac, in which case you need to use the javac file from java 8 (configured in the IDE under tools configure paths).
D dpenner New Member Licensed User Longtime User Dec 13, 2014 #3 Thank you so much I had read I needed Java 8 so I downloaded it but hadn't change the path. It works now. Again Thanks Upvote 0
Thank you so much I had read I needed Java 8 so I downloaded it but hadn't change the path. It works now. Again Thanks