Executing a javafx.concurrent.Task in a headless environment throws an exception:
Caused by: java.lang.IllegalStateException: Toolkit not initialized
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:155)
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:150)
at javafx.application.Platform.runLater(Platform.java:52)
because the properties are calling PlatformImpl.runLater as part of their threading support.
This situation unnecessarily limits use of JavaFX properties and and libraries based upon them to be used only in a GUI environment. Can we have some type of solution to allow the javafx properties/observables to run in headless environments?
Caused by: java.lang.IllegalStateException: Toolkit not initialized
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:155)
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:150)
at javafx.application.Platform.runLater(Platform.java:52)
because the properties are calling PlatformImpl.runLater as part of their threading support.
This situation unnecessarily limits use of JavaFX properties and and libraries based upon them to be used only in a GUI environment. Can we have some type of solution to allow the javafx properties/observables to run in headless environments?