java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

Unix & Linux | ALandau | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Remote headless streaming of GUI from Linux: X says "No protocol specified" before login

    Unix & Linux | 9 months ago | ALandau
    java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

    Root Cause Analysis

    1. java.awt.AWTError

      Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

      at sun.awt.X11GraphicsEnvironment.initDisplay()
    2. Java RT
      X11GraphicsEnvironment.initDisplay
      1. sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      1 frame