Been a long time since I've looked at the Datavision code, and I never
did much at that, but I'll give it a go anyway.
On Tue, 2009-04-21 at 13:17 +0100, Jonny White wrote:
> Dear all,
>
>
> I have a simple Java program that generates a report and saves it to a
> html file. This runs fine on a linux setup with a gui but when I run
> it on my virtual server (which only has a command line, run level 3)
> it gives me the error message
>
>
> Gtk-WARNING **: cannot open display:
>
>
> and that's it.
>
Chances are there's some component that's Swing/AWT reliant to produce
the report, but it can't since it can't find an X server (or display
context or some such; don't really remember what it's called). Try
taking a look into xvfb, which is kinda a fake X server (just try to
apt-cache search xvfb, or whatever your distro's packagemanager
equivavlent).
>
> The html output and has started to generate. It gets as far as
> starting a table.
>
>
> When run on a machine with a GUI, no output is made to the GUI.
>
This is is somewhat contradictory to what you said first. Is this a
virtual server with a GUI?
>
> [snip]
Cheers :)
**********************************************************************
**********************************************************************
|