Hi,
we are developing with JFreeChart to generate dynamic SVG-Grafics
for our PDF Generator. It works fine at Windows NT at least.
When you run it on Unix Systems the following happens:
---------------------------------------------------------------------------------------------
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58) ....
-----------------------------------------------------------------------------------------------
It's a known fact, that AWT does not go with JDK1.3 on Unix Systems. Does there exist a work around? Has anybody experience on running AWT under Unix-OS?
Thanx for any hints
Eveline
Running JFreeChart on Unix Systems ...
Re: Running JFreeChart on Unix Systems ...
This thread summarises the options:
http://www.object-refinery.com/phorum-3 ... 375&t=2987
Regards,
DG.
http://www.object-refinery.com/phorum-3 ... 375&t=2987
Regards,
DG.
Re: Running JFreeChart on Unix Systems ...
> It's a known fact, that AWT does not go with JDK1.3 on Unix Systems
That is far from the truth, i am afraid to say.
AWT relies on native windowing code, and in X11 in order
to run Xlib code you need to have an X server.
You could either start up X normally, and then run your awt code,
or (better) use a virtual frame buffer (that is a driver for a non existent
graphics card, using your machines virtual memory).
The latter is a better cantidate for server environments.
Xvfb works nice and efficiently.
That is far from the truth, i am afraid to say.
AWT relies on native windowing code, and in X11 in order
to run Xlib code you need to have an X server.
You could either start up X normally, and then run your awt code,
or (better) use a virtual frame buffer (that is a driver for a non existent
graphics card, using your machines virtual memory).
The latter is a better cantidate for server environments.
Xvfb works nice and efficiently.