java.lang.NoClassDefFoundError: Could not initialize class 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

Samebug tips

,
Expert tip

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

Solutions on the web

via liferay.com by Unknown author, 1 year ago
via Stack Overflow by user739866
, 2 years ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via Stack Overflow by Ruchira Mayekar
, 2 years ago
Could not initialize class sun.awt.X11GraphicsEnvironment
via scriptscoop.com by Unknown author, 2 years ago
via scriptscoop.net by Unknown author, 1 year ago
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1172)
at com.liferay.portal.kernel.image.ImageToolUtil.scale(ImageToolUtil.java:81)
at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.storeThumbnailmage(DLPreviewableProcessor.java:1055)
at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.storeThumbnailImages(DLPreviewableProcessor.java:1022)
at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:266)
at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:75)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:64)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:671)
at java.lang.Thread.run(Thread.java:701)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
6 times, 5 months ago
2 times, 6 months ago
49 more bugmates

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