java.lang.NoClassDefFoundError

Could not initialize class sun.awt.X11GraphicsEnvironment

Samebug tips1

org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar


rafaelrafael

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

Solutions on the web1240

  • via Unknown by Unknown author,
  • 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:169) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.Toolkit$2.run(Toolkit.java:834) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826) at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:128) at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1556) at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130) at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591) at javax.swing.UIManager.setLookAndFeel(UIManager.java:542) at javax.swing.UIManager.setLookAndFeel(UIManager.java:582) at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1344) at javax.swing.UIManager.initialize(UIManager.java:1433) at javax.swing.UIManager.maybeInitialize(UIManager.java:1421) at javax.swing.UIManager.getLookAndFeel(UIManager.java:495) at sun.tools.jconsole.JConsole.updateLafValues(JConsole.java:63) at sun.tools.jconsole.JConsole.<clinit>(JConsole.java:58)

    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 visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    pulse00pulse00
    6 times, last one
    guizmaiiguizmaii
    2 times, last one
    serious2monkeysserious2monkeys
    60 times, last one
    48 more bugmates