I have been trying to install/run JavaFX18 from Gluon on my raspberry pi4 and getting the following error message:
Exception in thread "main" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(... edited...)
Caused by: java.lang.UnsatisfiedLinkError: /opt/javafx-sdk-18/lib/libglass.so: /opt/javafx-sdk-18/lib/libglass.so: undefined symbol: g_direct_hash
here is my config:
- Java: Linux/arm32 jdk-17.0.1+12
- JavaFx: Linux/arm32 openjfx-18-ea+7 (also tried 17.0.1 and 17.0.2)
I'm following the instruction per Gluon doc (https://docs.gluonhq.com/#platforms_embedded) using the simple HelloFX example (https://github.com/openjfx/samples). Here are the commands I'm executing in the HelloFX directory (where src is) on my pi:
- sudo /opt/jdk-17.0.1+12/bin/javac -verbose --module-path=/opt/javafx-sdk-18/lib --add-modules=javafx.controls src/hellofx/HelloFX.java -d dist
- sudo /opt/jdk-17.0.1+12/bin/java -Dglass.platform=gtk -Djava.library.path=/usr/java/packages/lib:/lib:/usr/lib:/opt/javafx-sdk-18/lib --module-path=/opt/javafx-sdk-18/lib --add-modules=javafx.controls -cp dist/. hellofx.HelloFX
[Note this is running with X11, not in Kiosk/CLI mode; the Gluon doc also shows how to run that same example in non-desktop mode with DRM..etc: I have tried this and working reasonably ok; I haven't tried the 64b variant yet]
has anyone stumbled on this issue and able to work around?