B4J Question Help: NoClassDefFoundError on Raspberry Pi

Peter Simpson

Expert
Licensed User
Hello All,
I'm getting this on my Raspberry Pi. If I remove the Webview from the fxml layout file, then the it runs just fine. My Pi Java version is 1.8.0, and the version in B4J is 1.7.0. I've also tried 1.8.0 in B4J as I have them both installed on my laptop.
B4X:
Program started.
main._process_globals (java line: 160)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
    at anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(WebViewWrapper.java:23)
    at b4j.example.main._process_globals(main.java:160)
    at b4j.example.main.initializeProcessGlobals(main.java:131)
    at b4j.example.main.start(main.java:32)
    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(Lens
Application.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
Works perfect in Windows X and Mac OS X. It's just not working on my Raspberry Pi :(

Cheers...
 

Attachments

Last edited:
Top