Comments (3)
Which way do you use to run JavaFX on Raspberry Pi?
I tried jdk16 arm32-vfp-hflt full version from bell-sw on Raspberry Pi 4 with Raspbian 10 (buster) with Raspberry Pi 7" Touch Screen Display.
I can run a JavaFX app directly attaching a mouse and a keyboard to Raspberry Pi and writing the command in a shell window which I opened in Raspbian desktop or connecting to Rasperry Pi via VNC.
java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+36)
OpenJDK Server VM (build 16+36, mixed mode)
java HelloWorld
This works for me with Legacy GL driver. I used sudo raspi-config
and the /boot/config.txt is
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
and with GL (Fake KMS)
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
dtoverlay=vc4-fkms-v3d
If I connect to Raspberry Pi4 using ssh and run JavaFX I also see Unable to open DISPLAY
exception. Running UI using ssh requires using '-X' option:
ssh -X pi@host
java HelloWorld
In this case I see the HelloWorld JavaFX app but it is shown not in Raspberry Pi but on my Linux system which I use to connect to Raspberry Pi.
from liberica.
Closing as it seems to be a configuration issue.
from liberica.
We have the same issue in a project as stated by OP. What configuration resolves this issue?
from liberica.
Related Issues (20)
- cannot be opened because the developer cannot be verified HOT 4
- Alpine image causes core dump. HOT 1
- JDK crushed during unit test under IDEA
- ARM M2: JavaFX crashes when second scene opened. HOT 2
- Fix CVE-2023-2650 in Alpine Docker images HOT 3
- Upgrade to Alpine 3.18.2 to address OpenSSL CVEs HOT 2
- libprism_es2.so: undefined symbol: glXQueryExtension HOT 3
- Add curl in liberica-runtime-container image HOT 3
- Upgrade liberica-openjdk-alpine:20 to Alpine 3.18.3 to address OpenSSL CVEs HOT 3
- Buildpacks with Java 21 HOT 3
- Release 21.0.1+15 HOT 2
- Question HOT 2
- Upgrade liberica-openjdk-alpine:21 to Alpine 3.18.5 to address OpenSSL CVEs HOT 4
- apk missing in images HOT 2
- Upgrade liberica-openjdk-alpine:21 to Alpine 3.19.1 to address OpenSSL CVEs HOT 4
- Crash when using native library embedded in a jar. HOT 2
- [FR] For slim images remove docs, mans and other irrelevant files HOT 2
- Status of ParallelGC HOT 1
- API: Java 22 release marked as EOL HOT 1
- "Fontconfig head is null, check your fonts or fonts configuration" with liberica-openjdk-alpine:17.0.10 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liberica.