Hi,
I have followed all the installation of Java and Openfx found on the forum but when I run it I get this error
and Open Javafx is at
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
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 isdjpeterlewis@ledposter:~/Downloads $ sudo java -jar --module-path /usr/share/openjfx/lib --add-modules javafx.controls -jar ledposterplayer.jar
main._appstart (java line: 63)
java.lang.RuntimeException: java.lang.ClassNotFoundException: javafx$scene$media$MediaView
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:140)
at anywheresoftware.b4j.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:85)
at anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(LayoutBuilder.java:109)
at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:101)
at b4j.ledposter.main._appstart(main.java:63)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)
at b4j.ledposter.main.start(main.java:37)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ClassNotFoundException: javafx$scene$media$MediaView
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:289)
at anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(JavaObject.java:84)
at b4j.ledposter.mediaview._designercreateview(mediaview.java:133)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
... 18 more
djpeterlewis@ledposter:~/Downloads $
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 updatesdjpeterlewis@ledposter:~ $ dpkg-query -L openjfx
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/openjfx
/usr/share/doc/openjfx/TODO.Debian
/usr/share/doc/openjfx/changelog.Debian.gz
/usr/share/doc/openjfx/copyright
/usr/share/openjfx
/usr/share/openjfx/lib
/usr/share/openjfx/lib/javafx.properties
/usr/share/openjfx/lib/javafx.base.jar
/usr/share/openjfx/lib/javafx.controls.jar
/usr/share/openjfx/lib/javafx.fxml.jar
/usr/share/openjfx/lib/javafx.graphics.jar
/usr/share/openjfx/lib/javafx.media.jar
/usr/share/openjfx/lib/javafx.swing.jar
/usr/share/openjfx/lib/javafx.web.jar
djpeterlewis@ledposter:~ $
sudo apt-get install libavcodec-extra libavformat-extra
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libavcodec-extra61 libavformat-extra61
Suggested packages:
libcuda1 libnvcuvid1 libnvidia-encode1
The following packages will be REMOVED:
libavcodec61 libavformat61
The following NEW packages will be installed:
libavcodec-extra libavcodec-extra61 libavformat-extra libavformat-extra61
0 upgraded, 4 newly installed, 2 to remove and 0 not upgraded.
Need to get 8,814 kB of archives.
After this operation, 253 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.raspberrypi.com/debian trixie/main arm64 libavformat-extra61 arm64 8:7.1.3-0+deb13u1+rpt1 [1,466 kB]
Get:2 http://archive.raspberrypi.com/debian trixie/main arm64 libavcodec-extra61 arm64 8:7.1.3-0+deb13u1+rpt1 [7,230 kB]
Get:3 http://archive.raspberrypi.com/debian trixie/main arm64 libavcodec-extra arm64 8:7.1.3-0+deb13u1+rpt1 [58.9 kB]
Get:4 http://archive.raspberrypi.com/debian trixie/main arm64 libavformat-extra arm64 8:7.1.3-0+deb13u1+rpt1 [58.9 kB]
Fetched 8,814 kB in 3s (3,398 kB/s)
dpkg: libavformat61:arm64: dependency problems, but removing anyway as you requested:
vlc-plugin-base:arm64 depends on libavformat61 (>= 7:7.0).
rpicam-apps-encoder:arm64 depends on libavformat61 (>= 7:7.0).
python3-av depends on libavformat61 (>= 7:7.0).
libavfilter10:arm64 depends on libavformat61 (>= 7:7.0).
libavdevice61:arm64 depends on libavformat61 (= 8:7.1.3-0+deb13u1+rpt1).
gstreamer1.0-libav:arm64 depends on libavformat61 (>= 7:7.0).
ffmpeg depends on libavformat61 (>= 7:7.0).
(Reading database ... 143046 files and directories currently installed.)
Removing libavformat61:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Selecting previously unselected package libavformat-extra61:arm64.
(Reading database ... 143040 files and directories currently installed.)
Preparing to unpack .../libavformat-extra61_8%3a7.1.3-0+deb13u1+rpt1_arm64.deb ...
Unpacking libavformat-extra61:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
dpkg: libavcodec61:arm64: dependency problems, but removing anyway as you requested:
vlc-plugin-base:arm64 depends on libavcodec61 (>= 7:7.1).
rpicam-apps-encoder:arm64 depends on libavcodec61 (>= 7:7.1).
python3-av depends on libavcodec61 (>= 7:7.0).
libneatvnc0:arm64 depends on libavcodec61 (>= 7:7.0).
libavformat-extra61:arm64 depends on libavcodec61 (= 8:7.1.3-0+deb13u1+rpt1).
libavfilter10:arm64 depends on libavcodec61 (= 8:7.1.3-0+deb13u1+rpt1).
libavdevice61:arm64 depends on libavcodec61 (>= 7:7.0).
gstreamer1.0-libav:arm64 depends on libavcodec61 (>= 7:7.1).
ffmpeg depends on libavcodec61 (>= 7:7.1).
(Reading database ... 143047 files and directories currently installed.)
Removing libavcodec61:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Selecting previously unselected package libavcodec-extra61:arm64.
(Reading database ... 143040 files and directories currently installed.)
Preparing to unpack .../libavcodec-extra61_8%3a7.1.3-0+deb13u1+rpt1_arm64.deb ...
Unpacking libavcodec-extra61:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Selecting previously unselected package libavcodec-extra:arm64.
Preparing to unpack .../libavcodec-extra_8%3a7.1.3-0+deb13u1+rpt1_arm64.deb ...
Unpacking libavcodec-extra:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Selecting previously unselected package libavformat-extra:arm64.
Preparing to unpack .../libavformat-extra_8%3a7.1.3-0+deb13u1+rpt1_arm64.deb ...
Unpacking libavformat-extra:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Setting up libavcodec-extra61:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Setting up libavformat-extra61:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Setting up libavformat-extra:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Setting up libavcodec-extra:arm64 (8:7.1.3-0+deb13u1+rpt1) ...
Processing triggers for libc-bin (2.41-12+rpt1+deb13u1) ...
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: