Hi Bryan Scott,
I have a requirement to draw chart using servlet. I started using your demo for developing purpose and it was very useful. I have saved the chart as jpeg image and dynamically pointed to that image by servlet so that the image would be displayed in html browser.
When I move to this application to solaris box(with out x windows) it failed saying graph init failure. Is there any way I can use your demo servlet chart program on unix box with out x windows. My main purpose is to save the chart as jpeg, dont want to display it in anyother form except through html image tag. Please advice me on this.
Suggestion and advice are welcome from any one
Thanks
Naheed
JFreeChart Dependecy with X Windows
Re: JFreeChart Dependecy with X Windows
Hi Naheed,
All Java applications that use AWT and Java2D need X11 to be running, unless you are using the new JDK1.4. It not something that is specific to JFreeChart, it is the way the Java libraries have been implemented on Unix.
One solution for JDK1.2 and JDK1.3 is the Pure Java AWT (PJA) which some developers have reported works well. I've never tried it myself.
There are quite a few earlier posts in the forum about this. Do a search for "X11" or "PJA" and you'll find most of them.
Regards,
DG.
All Java applications that use AWT and Java2D need X11 to be running, unless you are using the new JDK1.4. It not something that is specific to JFreeChart, it is the way the Java libraries have been implemented on Unix.
One solution for JDK1.2 and JDK1.3 is the Pure Java AWT (PJA) which some developers have reported works well. I've never tried it myself.
There are quite a few earlier posts in the forum about this. Do a search for "X11" or "PJA" and you'll find most of them.
Regards,
DG.