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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via staf by bmahule
, 1 year ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via Oracle Community by 807599, 1 year ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via hsqldb by chuck-moore
, 2 months ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via okwave.jp 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 Kristian Nugraha
, 1 month ago
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
via Stack Overflow by leba-lev
, 3 months 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:159)
at java.awt.Window.(Window.java:432)
at java.awt.Frame.(Frame.java:403)
at javax.swing.JFrame.(JFrame.java:202)
at undefined.STAFDemoController.(STAFDemoController.java:42)
at undefined.STAFDemoController.main(STAFDemoController.java:20)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years 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

Write tip

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