Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: permission error using Color class



Sean Luke wrote:

>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.

It just occurred to me:
  How does bsh.Interpreter execute your code?

If it compiles to a class and then exec()'s another process, then dollars
to donuts it's not passing along the java.awt.headless state.

  -- 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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.