xdpyinfo: unable to open display ":0".

Solution Unverified - Updated -

Issue

  • Our application team is reporting that they are facing some DISPLAY variable issue and needs X11 to be configured.
xdpyinfo:  unable to open display ":0".
  • Java application giving following error.
Error: java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content