Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Re: Unit Tests with Jemmy

855837Apr 15 2013 — edited Apr 16 2013
I have a need for running headless beyond just for testing. I'd like to make a library that uses JavaFX properties/tasks that can either run headless, or can use the same tasks to run in a GUI that can display the progress info generated by the tasks. javafx.concurrent.Task seems perfect, except that when I try to run a task inside a maven mojo, I get:

java.lang.IllegalStateException: Toolkit not initialized

I'm currently running JavaFX 2.2.7 on OS X 10.8.3.

Is there a way to enable properties/Task in a headless environment on 2.2.7? Will there be a way for 8.0?

I don't need to run any GUI stuff headless, I just want to use the excellent JavaFX properties model in a way that is reusable across GUI and headless environments.

Thanks,

Keith
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2013
Added on Apr 15 2013
1 comment
178 views