The JDK on Unix has since JDK 1.5 defaulted to headless if DISPLAY is unset.
See bug 4890019 for more info.
BTW this discussion probably should be on the 2d-dev list too .. its mostly
an AWT issue but it touches on 2d initialisation too, as half of libmawt/libawt is 2D.

-phi.

On 4/21/2011 12:50 AM, Alan Bateman wrote:
David Holmes wrote:

But the file to be stat'd is OS dependent is it not?
It looks to me that GraphicsEnvironment.getHeadlessProperty should be consulting platform specific code to determine if we are headless. The Solaris/Linux implementation could check the DISPLAY variable and could also check if the headful toolkit is available.


Not sure how this use of sub-directories impacts that at all. Surely within the AWT module (assuming such a beast exists) it can organize its files how it wants?
In the module library then AWT's libraries might be located in somewhere like modules/sun.desktop/8.0/lib and it would be best if the VM didn't have any dependency on the location (which in this example includes both the module name and version).

-Alan.

Reply via email to