java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

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

via Stack Overflow by Michał Schielmann
, 1 year ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via Sonatype JIRA by Nicolai Ødum, 1 year ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via study-area.org by Unknown author, 2 years ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via Stack Overflow by CactusZ
, 1 year ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via Stack Overflow by Sheng
, 2 years ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via Stack Overflow by cornerstone
, 2 years ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
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:204)
at java.awt.Button.(Button.java:152)
at com.exe4j.runtime.util.MessageBox.addChoice(MessageBox.java:151)
at com.exe4j.runtime.util.MessageBox.addChoice(MessageBox.java:163)
at com.install4j.runtime.launcher.ErrorHandler.displayGuiErrorMessage(ErrorHandler.java:14)
at com.install4j.runtime.launcher.ErrorHandler.reportError(ErrorHandler.java:22)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:71)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates

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