File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes error with AFS, pls help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "error with AFS, pls help!" Watch "error with AFS, pls help!" New topic

error with AFS, pls help!

Florence Cheung

Joined: Mar 18, 2001
Posts: 24
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>(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
at java.awt.Window.<init>(
at java.awt.Frame.<init>(
at java.awt.Frame.<init>(
at javax.swing.JFrame.<init>(
at CompanyServer.<init>(
at CompanyServer.main(
Anybody knows how to fix this? Thanks in advance!
It is sorta covered in the JavaRanch Style Guide.
subject: error with AFS, pls help!
jQuery in Action, 3rd edition