tags:

views:

30

answers:

1

Is there way to find out if Java is running on a platform which supports windowing of any kind? I know that you could possibly figure it out by reading in the environment variables, but that might prove to be rather difficult with all the possible combinations.

+4  A: 
GraphicsEnvironment.isHeadless()

(see also the JavaDoc)

Adam Batkin