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

Stack Overflow | user782220 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Profiling tomcat application with VisualVM

    Stack Overflow | 6 months ago | user782220
    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$1.run
      1. sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      2. sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
      3. sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
      3 frames