java.lang.InternalError: Can't connect to X11 window server using 'localhost: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

Solutions on the web

via Oracle Community by Ol' What's His Name?, 1 year ago
Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
via Stack Overflow by chedine
, 2 years ago
Can't connect to X11 window server using 'tnsd03748:1.0' as the value of the DISPLAY variable.
via Oracle Community by user522961, 4 months ago
Can't connect to X11 window server using '192.168.1.87' as the value of the DISPLAY variable.
via ittoolbox.com by Unknown author, 1 year ago
Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
via Coderanch by Kiran Baratam, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Coderanch by Migrated From Jforum.net, 1 year 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 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)

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.