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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Getting error when running swing program
    via by saravanan rajendran,
  • Getting java.awt.HeadlessException Exception
    via by khushhal yadav,
  • Problems starting on C1
    via GitHub by MasterGroosha
    ,
  • error executing mvn exec:exec
    via GitHub by KavishBhatia
    ,
    • 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.<init>(Window.java:407) at java.awt.Frame.<init>(Frame.java:402) at java.awt.Frame.<init>(Frame.java:367) at javax.swing.JFrame.<init>(JFrame.java:163) at HelloWorldFrame.<init>(HelloWorldFrame.java:11) at HelloWorldFrame.main(HelloWorldFrame.java:9)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    4 more bugmates