GithubHelp home page GithubHelp logo

Comments (3)

AlexanderScherbatiy avatar AlexanderScherbatiy commented on June 12, 2024

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.

voitylov avatar voitylov commented on June 12, 2024

Closing as it seems to be a configuration issue.

from liberica.

maebli avatar maebli commented on June 12, 2024

We have the same issue in a project as stated by OP. What configuration resolves this issue?

from liberica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.