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 web5312

  • 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:186) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82) at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at java.awt.Toolkit$2.run(Toolkit.java:849) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841) at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:121) at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1564) at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147) at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599) at javax.swing.UIManager.setLookAndFeel(UIManager.java:530) at javax.swing.UIManager.setLookAndFeel(UIManager.java:570) at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1320) at javax.swing.UIManager.initialize(UIManager.java:1407) at javax.swing.UIManager.maybeInitialize(UIManager.java:1395) at javax.swing.UIManager.getDefaults(UIManager.java:644) at javax.swing.UIManager.getString(UIManager.java:790) at javax.swing.UIManager.getString(UIManager.java:807) at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:476) at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:442) at IO.input(GuessGame.java:10) at Player.createPlayer(GuessGame.java:26) at GuessGame.init(GuessGame.java:52) at GuessGame.main(GuessGame.java:85)

    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 year ago
    Unknown user
    Once, 1 month ago
    6 times, 2 months ago
    2 times, 2 months ago
    60 times, 7 months ago
    48 more bugmates