B4J Question Run GUI on Raspberry PI OS Lite (No Desktop)

German Buchmuller

Member
Licensed User
Longtime User
Hi. I need to run a UI B4j App in a Raspberry PI. If I install openjdk11 in the RPI with Raspberry PI OS Full (with desktop), the app runs fine.
However, I am trying to run the app with Raspberry PI OS Lite (no desktop environment). bj4-bridge runs fine, but when I try to compile and run a UI app, it crashes.
This is since it tries to open it with GTK platform, but RPI OS Lite doesnt have a desktop environment so it crashes.

I found the following tutorial on how to run JavaFX apps in RPI OS Lite:
https://www.paulcourt.co.uk/post/javafx-on-raspberry-pi.html

In that tutorial runs it using Monocle. But, if I try to run my B4J App on my RPI:
sudo java -jar -Dglass.platform=Monocle MyApp.jar
It will crash with something related to libpangox missing file.

Anybody knows how to run UI Apps on Raspberry OS Lite (no desktop)?
Thanks
 

arana

Member
Hi. I need to run a UI B4j App in a Raspberry PI. If I install openjdk11 in the RPI with Raspberry PI OS Full (with desktop), the app runs fine.
However, I am trying to run the app with Raspberry PI OS Lite (no desktop environment). bj4-bridge runs fine, but when I try to compile and run a UI app, it crashes.
This is since it tries to open it with GTK platform, but RPI OS Lite doesnt have a desktop environment so it crashes.

I found the following tutorial on how to run JavaFX apps in RPI OS Lite:
https://www.paulcourt.co.uk/post/javafx-on-raspberry-pi.html

In that tutorial runs it using Monocle. But, if I try to run my B4J App on my RPI:
sudo java -jar -Dglass.platform=Monocle MyApp.jar
It will crash with something related to libpangox missing file.

Anybody knows how to run UI Apps on Raspberry OS Lite (no desktop)?
Thanks


what version of jfx are you using? and what version of openjdk?
Check this monocle issue : https://github.com/TestFX/Monocle/issues/79

Also check here for manually installing libpangox in case is not installed: http://technoworkshop.in/solved-err...bpangox-1-0-so-0-anydesk-on-ubuntu-22-04-lts/
 
Upvote 0
Top