B4J Question Rasberry Pi Mediaview Error

Peter Lewis

Well-Known Member
Licensed User
Longtime User
Hi,
I have followed all the installation of Java and Openfx found on the forum but when I run it I get this error
Java Version is

djpeterlewis@ledposter:~ $ sudo java --version
openjdk 21.0.10 2026-01-20
OpenJDK Runtime Environment (build 21.0.10+7-Debian-1deb13u1)
OpenJDK 64-Bit Server VM (build 21.0.10+7-Debian-1deb13u1, mixed mode, sharing)
djpeterlewis@ledposter:~ $

and Open Javafx is at

I also did the codec updates



I had to put the media in the same folder as the media could not be found but it looks like the mediaplayer class could not be found

There were some notes along the way to install a 32 bit operating system which entails starting over again. Would this solve it ?

Thank you
 
Last edited:

Peter Lewis

Well-Known Member
Licensed User
Longtime User
The installed JavaFX is probably missing MediaView functionality. Have you tried to run the program with B4J-Bridge?
I have tried it, first it gave an error as it wanted the media in the tempjars folder

Then it gave me this error

Which it looks like it has a problem with creating the MediaView.

Somehow the Bridge shows the modules are loaded

 
Upvote 0

Peter Lewis

Well-Known Member
Licensed User
Longtime User
The installed JavaFX is probably missing MediaView functionality. Have you tried to run the program with B4J-Bridge?

I also tried this which was the suggestion from the Pi forum


So I have installed ver 25 FULL which should include jFX

djpeterlewis@ledposter:~/Downloads $ java -version
openjdk version "25.0.2" 2026-01-20 LTS
OpenJDK Runtime Environment (build 25.0.2+12-LTS)
OpenJDK 64-Bit Server VM (build 25.0.2+12-LTS, mixed mode, sharing)

but i still get this error in B4J over the bridge

 
Upvote 0

Peter Lewis

Well-Known Member
Licensed User
Longtime User
This is the error message: Caused by: com.sun.media.jfxmedia.MediaException: Could not create player!

It happens inside JavaFX.
I tried to run it now that i updated as per the Raspbery Pi Forum and it does almost perfectly on the Raspberry Pi but not through the bridge. There are some errors on certain functions


but will not work through the bridge at all
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…