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 Ask Ubuntu by user unknown
, 1 year ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via askubuntu.com by Unknown author, 1 year ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via Oracle Community by 843834, 1 year ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via oracle.com by Unknown author, 2 years ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via study-area.org by Unknown author, 2 years ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via Server Fault by Stefan Thyberg
, 1 year ago
Could not initialize class sun.awt.X11GraphicsEnvironment
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.(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)