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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807577, 1 year ago
Can't connect to X11 window server using 'mycomp' as the value of the DISPLAY variable.
via Oracle Community by 843797, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Oracle Community by 843804, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Oracle Community by 843835, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via Oracle Community by 843829, 1 year ago
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
via linuxquestions.org by Unknown author, 1 year ago
Can't connect to X11 window server using 'akroneiro:0.0' as the value of the DISPLAY variable.
java.lang.InternalError: Can't connect to X11 window server using 'mycomp' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:125)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:303)
at java.awt.Font.(Font.java:339)
at javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:195)
at javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
at javax.swing.plaf.metal.DefaultMetalTheme.getUserTextFont(DefaultMetalTheme.java:137)
at javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1405)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:196)
at javax.swing.UIDefaults.get(UIDefaults.java:126)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getFont(UIDefaults.java:346)
at javax.swing.UIManager.getFont(UIManager.java:491)
at javax.swing.plaf.basic.BasicTextUI.installDefaults(BasicTextUI.java:215)
at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:673)
at javax.swing.JComponent.setUI(JComponent.java:449)
at javax.swing.text.JTextComponent.setUI(JTextComponent.java:267)
at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:277)
at javax.swing.text.JTextComponent.(JTextComponent.java:251)
at javax.swing.JEditorPane.(JEditorPane.java:175)
at undefined.JEd.main(JEd.java:5)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.