java.lang.InternalError: Can't connect to X11 window server using 'mycomp' as the value of the DISPLAY variable.

Oracle Community | 807577 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    JEditorPane broken with no DISPLAY under unix?

    Oracle Community | 1 decade ago | 807577
    java.lang.InternalError: Can't connect to X11 window server using 'mycomp' as the value of the DISPLAY variable.

    Root Cause Analysis

    1. java.lang.InternalError

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

      at sun.awt.X11GraphicsEnvironment.initDisplay()
    2. Java RT
      JEditorPane.<init>
      1. sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      2. sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:125)
      3. java.lang.Class.forName0(Native Method)
      4. java.lang.Class.forName(Class.java:140)
      5. java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
      6. java.awt.Font.initializeFont(Font.java:303)
      7. java.awt.Font.<init>(Font.java:339)
      8. javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:195)
      9. javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
      10. javax.swing.plaf.metal.DefaultMetalTheme.getUserTextFont(DefaultMetalTheme.java:137)
      11. javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1405)
      12. javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:196)
      13. javax.swing.UIDefaults.get(UIDefaults.java:126)
      14. javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
      15. javax.swing.UIDefaults.getFont(UIDefaults.java:346)
      16. javax.swing.UIManager.getFont(UIManager.java:491)
      17. javax.swing.plaf.basic.BasicTextUI.installDefaults(BasicTextUI.java:215)
      18. javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:673)
      19. javax.swing.JComponent.setUI(JComponent.java:449)
      20. javax.swing.text.JTextComponent.setUI(JTextComponent.java:267)
      21. javax.swing.text.JTextComponent.updateUI(JTextComponent.java:277)
      22. javax.swing.text.JTextComponent.<init>(JTextComponent.java:251)
      23. javax.swing.JEditorPane.<init>(JEditorPane.java:175)
      23 frames
    3. Unknown
      JEd.main
      1. JEd.main(JEd.java:5)
      1 frame