Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Mac window server permissions
Mac window server permissions [message #724146] Sat, 10 September 2011 23:20 Go to next message
Eclipse UserFriend
Aloha!

I'm trying to run my first Java app under Eclipse on Mac OS 10.6.8. I'm getting

Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:566)
at crossmatch.Isimo.<init>(Isimo.java:37)
at crossmatch.Isimo.main(Isimo.java:72)

where line 37 is

BoardFrame frame = new BoardFrame();

BoardFrame extends java.awt.Frame. What permissions does it want? Other compiled Java apps run fine.
Re: Mac window server permissions [message #734421 is a reply to message #724146] Fri, 07 October 2011 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi, Have you tried using update site or installing plug in on mac. I am getting provision and NoHTTPConnectionException. If you ever faced this issue then please let me know the solution.

[Updated on: Fri, 07 October 2011 13:30] by Moderator

Re: Mac window server permissions [message #735461 is a reply to message #734421] Tue, 11 October 2011 17:30 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for the suggestions! I decided to use NetBeans. I'm sorry but I don't know anything about your issue.

-Brodie
Re: Mac window server permissions [message #735500 is a reply to message #724146] Tue, 11 October 2011 23:14 Go to previous message
Eclipse UserFriend
On 9/11/2011 8:50 AM, blockard wrote:
> Aloha!
>
> I'm trying to run my first Java app under Eclipse on Mac OS 10.6.8. I'm
> getting
> Exception in thread "main" java.lang.InternalError: Can't connect to
> window server - not enough permissions.
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
> at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> at java.lang.System.loadLibrary(System.java:1045)
> at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
> at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
> at java.awt.Component.<clinit>(Component.java:566)
> at crossmatch.Isimo.<init>(Isimo.java:37)
> at crossmatch.Isimo.main(Isimo.java:72)
>

Few others have seen the same exception
https://github.com/overviewer/minecraft-biome-extractor/issues/1
http://ernstdehaan.blogspot.com/2008/10/mac-os-x-fonts-and-headless-java.html
http://lists.apple.com/archives/java-dev/2004/dec/msg00613.html

The solution seems to be running awt in headless mode i.e. use
-Djava.awt.headless=true while launching the java program.
Previous Topic:Resource files
Next Topic:RAP Target Platform RAP: adding local plugins breaks it
Goto Forum:
  


Current Time: Mon Aug 25 06:57:40 EDT 2025

Powered by FUDForum. Page generated in 0.04661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top