If I go to a different machine (windows box) and ssh to
my linux box and run this application, it runs fine. I don't even have
to play with the display settings. It is only a problem if I run it
on mac.
I am not sure what "headles" session means in this context but I will
keep reading the link below. For now it works with
"-Djava.awt.headless=true".
I find it odd that this is working: because it should not be. Here's
the BeanShell transcript for 1.3.1:
poisson[~]> java -Djava.awt.headless=true bsh.Interpreter
BeanShell 1.3b1 - by Pat Niemeyer (email@hidden)
bsh % Color c = new Color(5,5,5);
kCGErrorRangeCheck : Window Server communications from outside of
session allowed for root and console user only
INIT_Processeses(), could not establish the default connection to the
WindowServer.Abort
1.4.x provides a similar error, only longer and with a stack trace.
My understanding is that certain Java GUI resources (notably: Fonts,
Colors, Shapes, etc.) may require the use of the underlying GUI system
no matter what. This happens under Linux as well, depending on which
Java version you're running under. Though in Linux if you run headless
then you can get away with more (notably Colors and Fonts), but not
entirely. I think Shapes and Areas still get you, IIRC. But on OS X,
Colors usually get you, headless or not, or at least that's been my
experience. So the question is: why is it working in nc's case? It
shouldn't be.
Sean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden