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.
JFreeChart fails on Linux works on windows
Re: JFreeChart fails on Linux works on windows
take a look at
http://www.object-refinery.com/phorum-3 ... 987&t=2987
maybe this gives you an answer.
Regards,
Andreas Schroeder
http://www.object-refinery.com/phorum-3 ... 987&t=2987
maybe this gives you an answer.
Regards,
Andreas Schroeder
Re: JFreeChart fails on Linux works on windows
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
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
Re: JFreeChart fails on Linux works on windows
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
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