Forum Discussion
OstbergM
Staff
13 years agoIt's like this, JavaFX2 is suboptimal when it comes to Linux today. Hopefully it will get better with time and Java8 in [Insert Oracle Releasedate here]
1. JavaFX does not like to run well in a headless environment yet, even though it is through command-line.
It seems that it performs checks with the OS long before even thinking of starting a Stage whether there is a screen to render it on.
Oracle has a ticket for it somewhere in their javafx-jira and i remember they had already fixed the problem but are awaiting to release it until Java8.
Nobody wants to wait until then, so you can circumvent the problem by installing Xvfb with Friends similarly to how you need to launch LoadUI Agents today.
http://www.soapui.org/forum/viewtopic.php?f=22&t=18878
2. Either use the jre that is bundled with LoadUI or the systems jre as long as it is more recent than 1.7_12. Below that version strange things seem to start happening. 1.6 does not even come bundled with JavaFX2, so you will have to install it manually.
3. libgio is another problem, this one depends on what distro you are running and how old it is. Install the below and it should bring libgio-2.0.so along with it.
In debian: apt-get install libglib2.0-dev
In RHEL/Fedora/Centos: yum install glib2-devel
It should be pretty straightforward, but if you run into problems just ask here and i'll try to answer when there is time.
Best regards,
Mikael
LoadUI Team
1. JavaFX does not like to run well in a headless environment yet, even though it is through command-line.
It seems that it performs checks with the OS long before even thinking of starting a Stage whether there is a screen to render it on.
Oracle has a ticket for it somewhere in their javafx-jira and i remember they had already fixed the problem but are awaiting to release it until Java8.
Nobody wants to wait until then, so you can circumvent the problem by installing Xvfb with Friends similarly to how you need to launch LoadUI Agents today.
http://www.soapui.org/forum/viewtopic.php?f=22&t=18878
2. Either use the jre that is bundled with LoadUI or the systems jre as long as it is more recent than 1.7_12. Below that version strange things seem to start happening. 1.6 does not even come bundled with JavaFX2, so you will have to install it manually.
3. libgio is another problem, this one depends on what distro you are running and how old it is. Install the below and it should bring libgio-2.0.so along with it.
In debian: apt-get install libglib2.0-dev
In RHEL/Fedora/Centos: yum install glib2-devel
It should be pretty straightforward, but if you run into problems just ask here and i'll try to answer when there is time.
Best regards,
Mikael
LoadUI Team