B4J Question Raspberry probelm...

micro

Well-Known Member
Licensed User
Hi
I have tested same small programs and appears to work well also with b4j-bridge.
now i have tested your application DBUtils.jar and after few seconds indicates there is an error:
B4X:
pi@raspberrypi ~ $ java -jar DBUtils.jar
Program started.
main._process_globals (java line: 408)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
        at anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(WebViewWrapper.java:23)
        at b4j.example.main._process_globals(main.java:408)
        at b4j.example.main.initializeProcessGlobals(main.java:374)
        at b4j.example.main.start(main.java:33)
        at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
        at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
        at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
        at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
        at com.sun.glass.ui.lens.LensApplication$RunnableEvent.dispatch(LensApplication.java:182)
        at com.sun.glass.ui.lens.LensApplication._runLoop(LensApplication.java:860)
        at com.sun.glass.ui.lens.LensApplication.access$1800(LensApplication.java:58)
        at com.sun.glass.ui.lens.LensApplication$4.run(LensApplication.java:917)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassNotFoundException: javafx.scene.web.WebView
        at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 15 more
pi@raspberrypi ~ $
It seems an error javafx in Webview ??
I use the latest version of raspberry raspbian with java embedded 8 precompiled into image.
 

micro

Well-Known Member
Licensed User
yes
B4X:
#Region  Project Attributes
   #CommandLineArgs:
   #MergeLibraries: true
#End Region
 

rwblinn

Well-Known Member
Licensed User
Hi,

JavaFX is not supported anymore for the Raspberry Pi. Read this post.
It states: "Starting with 8u33, JavaFX has been removed from both Oracle JDK for ARM and Oracle Java SE Embedded" - again, please note this applies for the Raspberry Pi - as it also staes clearly "JavaFX continues to be provided as a fully supported part of the Oracle JDK 8 product on x86 platforms (Windows, Linux, Mac). "

In previous Java 8 versions the JavaFx webview was not supported on the Raspberry Pi version.
 
Last edited:

micro

Well-Known Member
Licensed User
Ok
this is a discussion on the raspberry.org forum
https://www.raspberrypi.org/forums/viewtopic.php?t=97367&p=678791
(look replie of chriswhocodes user)
He on this link http://108.61.191.178/
offers compiled folder con javafx files (OpenJFX 8 Nightly for armv6hf)

I run with these changes, but it still does not go (other errors)

B4X:
[root@alarmpi ~]# jdk1.8.0_33/bin/java -jar /home/DBUtils.jar
Program started.
main.start (java line: 35)
java.lang.ExceptionInInitializerError
        at javafx.scene.Node.reapplyCss(Node.java:8962)
        at javafx.scene.Node.impl_reapplyCSS(Node.java:8925)
        at javafx.scene.Node.invalidatedScenes(Node.java:833)
        at javafx.scene.Node.setScenes(Node.java:898)
        at javafx.scene.Scene$9.invalidated(Scene.java:1119)
        at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBa                                                                                                                                                             se.java:111)
        at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:                                                                                                                                                             146)
        at javafx.scene.Scene.setRoot(Scene.java:1072)
        at javafx.scene.Scene.<init>(Scene.java:347)
        at javafx.scene.Scene.<init>(Scene.java:223)
        at anywheresoftware.b4j.objects.Form.shared(Form.java:55)
        at anywheresoftware.b4j.objects.Form.initWithStage(Form.java:44)
        at b4j.example.main.start(main.java:35)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163                                                                                                                                                             (LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(Platfor                                                                                                                                                             mImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.                                                                                                                                                             java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformI                                                                                                                                                             mpl.java:294)
        at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.                                                                                                                                                             java:92)
        at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java                                                                                                                                                             :51)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at com.sun.javafx.font.PrismFontLoader.loadFont(PrismFontLoader.java:196                                                                                                                                                             )
        at javafx.scene.text.Font.<init>(Font.java:319)
        at javafx.scene.text.Font.getDefault(Font.java:86)
        at javafx.scene.CssStyleHelper.<clinit>(CssStyleHelper.java:1528)
        ... 21 more
I'm wrong, it's a problem of B4j or openjfx?
Someone with more experienced in linux can see this problem?

Thanks
 

micro

Well-Known Member
Licensed User
On the Oracle website ther'isnt the jdk7 for arm.
From where i can download it?
Thanks
 
Top