awt.toolkit returns null

Hi all, I've discovered that the awt.toolkit system property returns null on the linux server hosting a java web application am working on. I've listed some of the AWT system properties on the system but the awt.toolkit returns null.

java.awt.graphicsenv: = sun.awt.X11GraphicsEnvironment

java.awt.headless: = ture

awt.toolkit: = null

I really dont know what could be causing this.

This affects all image related proceses (dynamic image creation) that the application does. It outputs the following error message:

java.lang.NoClassDefFoundError

java.lang.Class.forName0(Native Method)

java.lang.Class.forName(Class.java:141)

java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)

I dont think it has anything to do with X11, XServer or Headless.

Any thoughts ?

Cheers

[882 byte] By [olu_javamana] at [2007-11-26 16:48:27]
# 1
It hs something to do with a missing X11 server/the machine being headless. I faced a similar problem recently.
CeciNEstPasUnProgrammeura at 2007-7-8 23:15:58 > top of Java-index,Java Essentials,Java Programming...