nc wrote:
>kCGErrorRangeCheck : Window Server communications from outside of session
>allowed for root and console user
>only
>Exception in thread "main" java.lang.InternalError: Can't connect to
>window server - not enough permissions.
>...
>My application (genGridNew.java) has this entry on line 47:
>Color colorsReq = new Color(red, grn, blu);
>Could anyone give me a hint on this? I really don't know what to do here.
>The same program runs on a Linux
>platform. I tried display settings ( I am not using mac console, I am
>running this trough an ssh session).
Please explain exactly what you mean by:
1. "I tried display settings"
2. "mac console"
I can think of several meanings for "display settings", but none of them
have a bearing on an SSH session, AFAIK.
I can also think of several interpretations of "mac console", including the
Terminal app, a remote login, etc. And if SSH is involved, there are
several ways of using that, too. Exactly how are you running the SSH
session?
And when you say it runs on a Linux platform, are you using SSH there, too?
Off the top of my head, have you tried running the SSH'ed java process as
headless? I suspect that might make a difference, since SSH implies to me
that you are indeed running headless (i.e. without a graphics display in
the context of the process). For info on headless mode see:
<http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless>
The critical property is:
-Djava.awt.headless=true
-- GG
_______________________________________________
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
This email sent to email@hidden