• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use x11 to run the window java program?

 
chun-ying lin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i used Mac OS X 10.4.11 and eclipse
installed soylatte16-i386-1.0.3
when i ran a window program
i got the problem:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
......

how to solve the question?
i had installed x11 but i don't know how to set the env or config...
 
Jaz Chana
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://blog.devsandbox.co.uk/?p=179

Let me know how you get on
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!