java.lang.NoClassDefFoundError

Could not initialize class sun.awt.X11GraphicsEnvironment

Samebug tips1

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5311

  • via Oracle Community by 843834, 1 year ago
    Could not initialize class sun.awt.X11GraphicsEnvironment
  • via Oracle Community by 807591, 11 months ago
    Could not initialize class sun.awt.X11GraphicsEnvironment
  • Could not initialize class sun.awt.X11GraphicsEnvironment
  • Stack trace

    • java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82) at javax.swing.RepaintManager.<clinit>(RepaintManager.java:233) at javax.swing.JComponent.repaint(JComponent.java:4792) at java.awt.Component.repaint(Component.java:3313) at javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1758) at javax.swing.text.JTextComponent.<init>(JTextComponent.java:309) at javax.swing.JEditorPane.<init>(JEditorPane.java:199) at javax.swing.JTextPane.<init>(JTextPane.java:90) at com.intellij.idea.Main.showMessage(Main.java:231) at com.intellij.idea.Main.showMessage(Main.java:217) at com.intellij.idea.Main.main(Main.java:86)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 month ago
    6 times, 2 months ago
    2 times, 2 months ago
    60 times, 7 months ago
    Unknown user
    2 times, 10 months ago
    48 more bugmates