0

I'm trying to start a JavaFX application on ubuntu without X11 server. The idea is to get the visualization of the application using framebuffer. I'm not sure if I got it right, but as I understand the Monocle, I should be able to run the application on framebuffer - so my understanding is, that just under console. I'm using following command: java -jar my.jar -Djavafx.platform=Monocle -Dmonocle.platform=Linux -Dprism.order=sw

As the result of this command I'm getting a stacktrace with message: Caused by: java.lang.UnsupportedOperationException: Unable to open DISPLAY

I've tried to set different values under the DISPLAY variable, but without any success. So my questions is:

  • Is my understanding correct, and it is possible to run the JavaFX application direct in console?

And if the answer for the question above is:

  • true -> then what I'm doing wrong?
  • false -> what exactly Monocle needs to be start application without window server?

The application is a custom application written by me as a typical JavaFX application using spring for it state management. From the architecture point of view very similar to the one described in this tutorial -> https://blog.jetbrains.com/idea/2019/11/tutorial-reactive-spring-boot-a-javafx-spring-boot-application/ The application starts without any problems when I'm using ubuntu with X11.

michalp
  • 83
  • 5

0 Answers0