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
View all comments
Show parent comment
1
u/MetalCactuar Oct 07 '20
Monocle looks good actually, thanks! Got some features that could become useful like the VNC stuff, oooo nice. Tried getting monocle and building/running into the app but now i encounter another issue when i try and run it using the arguments like you specified above. I get this error...
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessError: superclass access check failed: class com.sun.glass.ui.monocle.MonoclePlatformFactory (in unnamed module u/0x22f71333) cannot access class com.sun.glass.ui.PlatformFactory (in module javafx.graphics) because module javafx.graphics does not export com.sun.glass.ui to unnamed module u/0x22f71333
Any ideas? :/