Forum Discussion
OstbergM
10 years agoStaff
Hello again!
This is good! This is extremely common when a machine does not sport a display like yours.
Remember that JavaFX2 is an interface-library, it wants to verify that it can draw the components it's requested to so it checks whether there's a DISPLAY environment variable. Isn't that clever!
Unfortunately it makes it pretty hard to draw graphs, which is doable without a screen, on reports in a headless environment when the library demands it.
So let's give it a mock-screen.
The solution is Xvfb, and the way to accomplish this has been explained before.
So here is a link to one of those topics.
I hope it solves your issue, otherwise just get back and we'll troubleshoot it further.
Best,
Mikael
This is good! This is extremely common when a machine does not sport a display like yours.
Remember that JavaFX2 is an interface-library, it wants to verify that it can draw the components it's requested to so it checks whether there's a DISPLAY environment variable. Isn't that clever!
Unfortunately it makes it pretty hard to draw graphs, which is doable without a screen, on reports in a headless environment when the library demands it.
So let's give it a mock-screen.
The solution is Xvfb, and the way to accomplish this has been explained before.
So here is a link to one of those topics.
I hope it solves your issue, otherwise just get back and we'll troubleshoot it further.
Best,
Mikael