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 430270, 1 year ago
Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
via Oracle Community by 627359, 1 year ago
Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
via Oracle Community by 633866, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Oracle Community by 843806, 6 months ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Oracle Community by 401904, 1 year ago
Can't connect to X11 window server using '10.31.17.200:0.0' as the value of the DISPLAY variable.
via Oracle Community by 768953, 1 year ago
Can't connect to X11 window server using '127.0.0.1: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.(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.(Window.java:275)
at java.awt.Frame.(Frame.java:401)
at oracle.ewt.popup.PopupFrame.(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.(Unknown Source)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.(OiocOneClickInstaller.java:349)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2106)

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

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