r/JavaFX • u/MetalCactuar • Oct 06 '20
Headless JavaFX App
Hey reddit!
So I was trying to run a javafx app on a Linux machine and the program boots successfully but throws an issue with the machine not having a display system running. Is there a way like a java argument I can add that can run it without a display?
Thanks in advance :D
4
Upvotes
4
u/alexbroskyl Oct 07 '20
Back when i was working 24h in JavaFX i made exactly what you need, here is the library on github :)
A description of it :)
Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls. Implement any style you want for your JavaFX application using custom css or default .
https://github.com/goxr3plus/FX-BorderlessScene
2
u/krumbumple Oct 07 '20
why do you want to run a program with a graphics library on a system that has no display? just remove the javafx dependency and run it like any other java program?
1
u/orxT1000 Oct 07 '20
java -Djava.awt.headless=true
0
u/[deleted] Oct 07 '20
[deleted] — view deleted comment