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

Unix & Linux | Merlin | 2 years 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

    Starting Arduino IDE as root fails on Archlinux with KDE

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

    Can't start TWS.

    GitHub | 10 months ago | huangjqiu
    java.awt.AWTError: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.
  3. 0

    Fedora - android studio is not running

    Stack Overflow | 5 months ago | Hamid sh
    java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    phpStorm failed to start from command line: "Start Failed: Failed to initialize graphics environment"

    Stack Overflow | 2 months ago | ReynierPM
    java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
  6. 0

    Geting java.awt.AWTError: Can't connect to X11 window server on HP-unix with JRE-8

    Stack Overflow | 2 years ago | user3820339
    java.awt.AWTError: Can't connect to X11 window server using 'ravkumar-t430.apac.tibco.com:1.0' as the value of the DISPLAY variable.

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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
      GraphicsEnvironment.getLocalGraphicsEnvironment
      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)
      4. java.security.AccessController.doPrivileged(Native Method)
      5. sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
      6. java.lang.Class.forName0(Native Method)
      7. java.lang.Class.forName(Class.java:260)
      8. java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
      9. java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
      9 frames
    3. sun.awt.X11
      XToolkit.<clinit>
      1. sun.awt.X11.XToolkit.<clinit>(XToolkit.java:123)
      1 frame
    4. Java RT
      Toolkit.getDefaultToolkit
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:260)
      3. java.awt.Toolkit$2.run(Toolkit.java:860)
      4. java.awt.Toolkit$2.run(Toolkit.java:855)
      5. java.security.AccessController.doPrivileged(Native Method)
      6. java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
      6 frames
    5. processing.core
      PApplet.<clinit>
      1. processing.core.PApplet.<clinit>(Unknown Source)
      1 frame
    6. processing.app
      Base.main
      1. processing.app.Preferences.save(Preferences.java:747)
      2. processing.app.Preferences.init(Preferences.java:250)
      3. processing.app.Base.main(Base.java:117)
      3 frames