Just trying to use Jasper reports on a Sun ONE application server environment (v7)...

I've managed to compile and successfully deploy the sample webapp application to the box. This is after applying the patch to fix XML UTF encoding woes.

I have been able to get Jasper to comple the report. I can see the .jasper file now in the reports directory. However, when I go to view the report using the html link say:

/jasper-webapp/jsp/html.jsp and the following exception occurs:
java.lang.InternalError: Can't connect to X11 window server using 'XX.XX.XX.XX:0.0' as the value of the DISPLAY variable.

        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.(
        at dori.jasper.engine.fill.JRBaseFiller.(

I've had a look at the class JRBaseFiller and it has the following static block:

        //FIXME use this in some kind of a isFontAvailable method
        GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
        String envfonts[] = gEnv.getAvailableFontFamilyName();

Where GraphicsEnvironment is sun.awt.GraphicsEnvironment.

Is there a reason why this is a statically initialised block? And why is it trying to connect to an X11 server? Is there a fix? Perhaps a configuration I'm missing...