B4J Question App error / Media Player on Linux?

Tecuma

Member
Licensed User
Hello Community,

I want to test a B4J App on Linux (Debian). I use the latest version from B4JPackager11 and followed the instruction.
I use the SDK+JFX package V11 from B4X.

When I run my App I got this error.

B4X:
wchris@winsafa:~/Downloads/temp/build$ ./run.command
MainPage Init
DataProfileFolder path: /home/wchris/Downloads/temp/build/bin
MainPage create
Imprint Page init
ManageProfile init
DE
de
Load Settings
Profile File Dicy_Profiles.txt exist
Active Profile: Lotto
Profile found which is Active
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
b4xmainpage._btnroll_click (java line: -1)
java.lang.UnsupportedOperationException: Unsupported protocol "jrt"
    at javafx.media/com.sun.media.jfxmedia.locator.Locator.<init>(Unknown Source)
    at javafx.media/javafx.scene.media.Media.<init>(Unknown Source)
    at b4j/anywheresoftware.b4j.objects.MediaPlayerWrapper.Initialize(Unknown Source)
    at b4j/b4j.B4XDicy.b4xmainpage._btnroll_click(Unknown Source)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
    at b4j/anywheresoftware.b4a.BA$1.run(Unknown Source)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
    at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

The error comes up when I press a button. Within this code I play a file.

B4X:
    #If B4J
    MP.Initialize("MP", File.GetUri(File.DirAssets, "abadice_wuerfel.mp3"))
    MP.Play
    #End If

MP is declared as MediaPlayer.

Is MediaPlayer not supported on Linux?

Best regards

--Christian
 
Top