Thursday, January 20, 2005

Offscreen Imaging: X11, DISPLAY, BufferedImage :: View topic - Offscreen Imaging: X11, DISPLAY, BufferedImage: "Under JRE 1.4, setting the 'headless' property to true allows JFreeChart to render in the absence of an X11 instance. Ray Mercer reports success on RedHat Linux 7.1, 7.1j & 7.2. I have verified correct operation on Solaris 2.7.20:


For servlets, you can use set the property in the command line that invokes the servlet container:

java -Djava.awt.headless=true ...

In tomcat 4, the script can use an environment setting:

setenv CATALINA_OPTS -Djava.awt.headless=true"

No comments: