Determining the availability of awt?

Hello.

In my application I have a servlet constructing images for display, that will not work on a linux machine without installed graphic libraries. Which is fine. The option should be up to the server owner running the application, wether he/she wants to install these or not. The cause and solution to this problem is familiar to me.

but:

Because of this I want to be able to test the availability of awt so that I can disable any functionality involving it. So far I have had no luck doing this.

I've tried catching the ServletException that is generated, but of course could not, since it occurs "deep" inside suns java architecture, far removed from my own classes.

Any help or thoughts on the subject would be greatly appreciated...

Thanks,

/J

[800 byte] By [Julgrana] at [2007-10-1 16:31:41]
# 1
There can be replacement libraries to be used by awt instead of a fully fledged GUI environment. Cf also on "Headless Support": http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
BIJ001a at 2007-7-11 0:49:55 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...