• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error with AFS, pls help!

 
Florence Cheung
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to run a GUI implemented in Swing on afs. But got this exception: -
>Exception in thread "main" java.lang.InternalError: Can't con
nect 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.<clinit>(X11GraphicsEnvironment.java:5
9)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:58)
at java.awt.Window.<init>(Window.java:188)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:262)
at javax.swing.JFrame.<init>(JFrame.java:141)
at CompanyServer.<init>(CompanyServer.java:53)
at CompanyServer.main(CompanyServer.java:171)
Anybody knows how to fix this? Thanks in advance!
Florence
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic