java.awt.HeadlessException

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jdecastroll
Posts: 2
Joined: Thu Apr 14, 2005 10:16 am

java.awt.HeadlessException

Post by jdecastroll » Wed Apr 20, 2005 12:06 pm

The system make a java.awt.HeadlessException when the application try to generate the graphics.
I'm unable to resolve the problem.
Could some one help me please

The OS is a HP UX-11

Thanks

Guest

Post by Guest » Wed Apr 20, 2005 3:08 pm

Ok, I now know the problem origen, the server had the X dead
Some system manager people doesn´t work enough

timw
Posts: 20
Joined: Fri Mar 18, 2005 12:36 pm
Location: London

Post by timw » Wed Apr 20, 2005 5:18 pm

For info of anybody else who comes across this problem it is a pre java 1.4 issue which requires you to have run a virtual frame buffer on your box to make JFreeChart work.

If u supply this command line parameter you should be ok:

Code: Select all

-Djava.awt.headless=true

Locked