Headless???

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

Headless???

Post by Dan Petrie » Tue Dec 17, 2002 4:42 pm

We are using Solaris 8 (no windows libraries) and are encountering the following exception when trying to create a plot:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:310)
at java.awt.Font.<init>(Font.java:346)
at com.jrefinery.chart.Plot.<init>(Unknown Source)
at com.jrefinery.chart.XYPlot.<init>(Unknown Source)
at com.jrefinery.chart.XYPlot.<init>(Unknown Source)

Do we need to specify "headless=true" in the startup script for our application server (JBoss 3.0.2)? Is there anything else we should be aware of or try ahead of time?

Thanks,
Dan

David Gilbert

Re: Headless???

Post by David Gilbert » Tue Dec 17, 2002 6:11 pm

You will need to set the "headless" flag to true. Here's a thread that talks about it (and the other options for those using older JDKs):

http://www.object-refinery.com/phorum-3 ... 783&t=2987

Regards,

DG

Locked