headless Java : Java Glossary


headless Java
When Java is implemented on a very small device, a keyboard, mouse or AWT (Advanced Windowing Toolkit) graphics support may not be available. You will get a HeadlessException if you try to instantiate one of the AWT classes. You code
import java.awt.GraphicsEnvironment;
// true if missing keyboard, mouse or screen.
// false if full keyboard, mouse and GUI screen support available.
boolean barebones = GraphicsEnvironment.isHeadless();
You can simulate a headless environment by setting the java.awt.headless system property:
Oracle’s Javadoc on isHeadless class : available:

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number