JFreeChart fails on Linux works on windows

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Sul Durrani

JFreeChart fails on Linux works on windows

Post by Sul Durrani » Tue Sep 17, 2002 2:10 am

A jsp file which draws a pie chart using JFreeChart works on windows
but fails on Linux. The exception that I get on Linux is:
javax.ServletException: Can't connect to X11 window server using
'machineName:0.0' as the value of the DISPLAY variable.

We don't have xwindows installed on the Linux machine.

If you have encountered this problem or have any suggestions
I would appreciate your feedback. Thanks.

Andreas Schroeder

Re: JFreeChart fails on Linux works on windows

Post by Andreas Schroeder » Tue Sep 17, 2002 7:58 am

take a look at

http://www.object-refinery.com/phorum-3 ... 987&t=2987

maybe this gives you an answer.

Regards,

Andreas Schroeder

Sul Durrani

Re: JFreeChart fails on Linux works on windows

Post by Sul Durrani » Tue Sep 17, 2002 6:17 pm

Andreas,

Thanks for the reply it solved a lot of problems.

One of the solutions:
System.setProperty("java.awt.headless","true");

makes it all work!

Sul

Andreas Schroeder

Re: JFreeChart fails on Linux works on windows

Post by Andreas Schroeder » Wed Sep 18, 2002 8:59 am

Hi Sul,
yes, the property java.awt.headless works - but only with jdk 1.4.0 or later, as far as I know. But I did not know which one you HAVE to use. e.g. bea webservers have their own implemetation of the API, but version 1.3.1 (of course...). See the problem :-) ?

Regards,

Andreas Schroeder

Locked