B4J Question Raspberry Pi setup for B4J

ChristopherP

New Member
I have a number of Raspberry Pi's that are setup for JavaFX and they run B4J apps with no problems, but I am having trouble setting up a new Pi to do the same. I have tried a number of different ways of setting up the system, some of them are clearly for the older Pi OS. The latest attempt followed: https://www.b4x.com/android/forum/threads/raspberry-pi-5-first-steps.166049/ This is for a Pi5. I am running on a Pi4, would that change things?

I am running apps overB4J Bridge (which responds as expected) but when I launch an app in debug mode I get the following errors:

WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing
WARNING: package com.sun.glass.ui.win not in javafx.graphics
WARNING: package com.sun.prism.d3d not in javafx.graphics
WARNING: Unknown module: javafx.swt specified to --add-opens
Exception in thread "main"
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1149)
Caused by: java.lang.UnsupportedOperationException: Unable to open DISPLAY
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(GtkApplication.java:164)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:162)
at javafx.graphics/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:40)
at javafx.graphics/com.sun.glass.ui.Application.run(Application.java:146)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:290)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:292)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:162)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:651)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:409)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
 
Back
Top