java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment

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

java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Window.init(Window.java:268)
at java.awt.Window.(Window.java:312)
at java.awt.Frame.(Frame.java:431)
at java.awt.Frame.(Frame.java:396)
at javax.swing.JFrame.(JFrame.java:185)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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