B4J Question MediaManager Error with RaspBerry

CR95

Active Member
Licensed User
My B4J application with MediaManager showing a picture (from a file) is running well under Windows.

The same running on RaspBerry Linux shows following error :
bitmapsasync$ResumableSub_LoadFromFile.resume (java line: 142)
java.lang.NoClassDefFoundError: javafx/embed/swing/SwingFXUtils
at anywheresoftware.b4a.objects.B4XViewWrapper$B4XBitmapWrapper.Resize(B4XViewWrapper.java:842)
at b4j.example.bitmapsasync$ResumableSub_LoadFromFile.resume(bitmapsasync.java:142)
at b4j.example.bitmapsasync._loadfromfile(bitmapsasync.java:52)
at b4j.example.simplemediamanager$ResumableSub_PrepareMedia.resume(simplemediamanager.java:1025)
at b4j.example.simplemediamanager._preparemedia(simplemediamanager.java:943)
at b4j.example.simplemediamanager$ResumableSub_DownloadImageMedia.resume(simplemediamanager.java:690)
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1051)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.j
ava:92)
at javafx.graphics/com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.SwingFXUtils
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 13 more
I guess issue is coming from JavaFx
For information, level of installed Java on Rapsberry is as follows :
pi@raspberryCR:~ $ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.11+9-post-Raspbian-1deb10u1, mixed mode)
Please could you help
 

CR95

Active Member
Licensed User
Thanks Erel
Do you recommend another tool (in Linux Raspberry world) for showing photos (and videos) ?
May be ffmpeg ?
 
Upvote 0
Top