Recommended solutions based on your search
Solutions on the web
java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. 2. Otherwise, it might be looking for some graphics controller like X manager, which is not there, eventually resulting in "No X11 DISPLAY variable was set" to be thrown.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)