JFreeChart servlet problem w/ linux

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

JFreeChart servlet problem w/ linux

Post by miguel » Mon Apr 29, 2002 8:28 am

Hello,
I used JFreeChart in a java web app. My servlet receives a few params and returns a jpeg binary stream for html to display (mime type=image/jpeg). It works fine on my windows server, but not on my linux RedHat server. I don't get any error messages, but all that appears on the page is a small, empty image placeholder.
The linux box has jdk 1.3.1, and gnome and KDE are installed. What's wrong? Any help very much appreciated!

Miguel

David Gilbert

Re: JFreeChart servlet problem w/ linux

Post by David Gilbert » Mon Apr 29, 2002 8:58 am

Is X11 running?

Regards,

DG.

miguel

Re: JFreeChart servlet problem w/ linux

Post by miguel » Mon Apr 29, 2002 10:51 am

ooops! Of course, X11 was the culprit. Actually I'm much more interested in the JDK1.4 solution. It seems simpler, and more radical. Has anyone successfully used headless graphics with it?

I want to take this opportunity to thank you, David, for this wonderful project. I'm very happy with it, and I'm learning so much just by looking around your code. Superb OO job!

Miguel

Jim McLaughlin

Re: JFreeChart servlet problem w/ linux

Post by Jim McLaughlin » Thu May 02, 2002 4:57 am

Headless works great. add -Djava.awt.headless=true to the command line.

Jim McLaughlin

Locked