java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807592, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Oracle Community by 807555, 1 year ago
Can't connect to X11 window server using '10.3.10.15:0.0' as the value of the DISPLAY variable.
via Google Groups by Pfanzelter Thomas, 1 month ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Coderanch by James Hodgkiss, 11 months ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Google Groups by Pfanzelter Thomas, 1 month ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Google Groups by Pfanzelter Thomas, 2 years ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
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.(X11GraphicsEnvironment.java:58)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:59)
at sun.awt.motif.MToolkit.(MToolkit.java:56)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:495)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:488)
at java.awt.Window.getToolkit(Window.java:416)
at java.awt.Frame.addNotify(Frame.java:270)
at java.awt.Window.show(Window.java:278)
at undefined.Clock.main(Clock.java:102)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.