java.awt.AWTError: Can't connect to X11 window server using ':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 Stack Overflow by user782220
, 1 year ago
Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
via Stack Overflow by Angel
, 2 years ago
Can't connect to X11 window server using 'localhost:11.0' as the value of the DISPLAY variable.
via Ask Ubuntu by Mateusz
, 6 months ago
Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
via Unix & Linux by ALandau
, 1 year ago
Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
via Google Groups by SylZi, 2 days ago
Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.
via Unix & Linux by Amit Chakradeo
, 4 months ago
Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.
java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)

Users with the same issue

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

Write tip

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