Exception in thread “AWT-EventQueue-0” java.awt.HeadlessException:

With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>

Exception in thread “awt-eventqueue-0” java.awt.headlessexception: blog classification: exception

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)

Solution:

Add this in the Java startup parameter

Java code

-Djava.awt.headless= true

Similar Posts: