Forum Discussion
OstbergM
Staff
12 years ago
mariobrissette wrote:
But it seems that the loadUI-cmd.sh file kept all "windows" carriage return characters so it prevent the script runnning correctly.
Yup, that's definitely what broke it.
mariobrissette wrote:
But now, I'm still unable to run the loadUI-cmd.sh script in shell command as I'm facing another issue. Here is my new error message:
(java:2082): Gtk-WARNING **: cannot open display: localhost:0.0
From the looks of it, you are running on a headless environment. And you are trying to start the command-line runner which can produce reports. In order to produce reports that involves graphs, the JavaFX2 environment has to be launched.
Some assumptions in the JavaFX2-core are related to that a display has to exist in order to launch the framework.
I strongly agree that this is a bad assumption, and i hope it'll be fixed in the future.
In the meantime, however, there are workarounds. This involves installing an X virtual framebuffer, or emulating a fake X window system.
the steps to accomplish that are as follows on a Ubuntu 12.04 Server Edition:
Install this:
sudo apt-get install xvfb x11-xkb-utils libxrender-dev libxtst-dev libgtk2.0-0
Make sure this is executed. Preferably done on startup, by /etc/init.d/Xvfb or upstart:
Run Xvfb :99 -ac
Put this line in ~/.bashrc
export DISPLAY=:99.0
refresh the environment:
source ~/.bashrc
Now you should be able to run the commandline runner and be able to create reports if you want.
Have a look and see if you bump into any further problems.
If that's the case, let me know.
Best regards,
Mikael