I'm unable to run the Gluon JavaFx sample. I did all the step described with the exception of taking the newer Liberica JDK 11.0.2 instead of the preview and pointed the JAVA_HOME
variable to the respective directory.
Executing the demo application using:
$JAVA_HOME/bin/java \
--module-path=/opt/armv6hf-sdk/lib \
--add-modules=javafx.controls \
-cp target/classes/ \
-Dprism.verbose=true \
-Dembedded=monocle \
-Dglass.platform=Monocle sample.Main
Gives me the following output and error:
Prism pipeline init order: es2 sw
Using Double Precision Marlin Rasterizer
Using dirty region optimizations
Using system sized mask for primitives
Not forcing power of 2 sizes for textures
Using hardware CLAMP_TO_ZERO mode
Opting in for HiDPI pixel scaling
Prism pipeline name = com.sun.prism.es2.ES2Pipeline
Loading ES2 native library ... prism_es2_monocle
succeeded.
GLFactory using com.sun.prism.es2.MonocleGLFactory
Dispman: Cannot open display
* failed to add service - already in use?
Any ideas, what there could be the problem? I found various tips on stackoverflow like additionally installing the following packages:
sudo apt install raspberrypi-ui-mods xorg libgtk2.0-0
or doing a firmware update using:
sudo rpi-update 192
even modifing the /etc/udev/rules.d/99-com.rules
and adding:
SUBSYSTEM=="input*", PROGRAM="/bin/sh -c '\
chown -R root:input /sys/class/input/*/ && chmod -R 770 /sys/class/input/*/;\
'"
did cause any change.
Has anyone a idea what I'm missing or can do to get that running?