Thursday, September 1, 2016

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

The erro:

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:207)
        at java.awt.Window.<init>(Window.java:535)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.JFrame.<init>(JFrame.java:180)



To fix it

1. Install and config Xming on your desktop. Download Xming from https://sourceforge.net/projects/xming/    Run the executable file to install it.

2. Ensure that the Enable X11 forwarding is checked in your PuTTY Configuration. And the X display location is set to :0.0.


3. On the linux machine

      export DISPLAY=localhost:11.0

---------------------------------------------------------------------------------------------------

                        

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.

No comments:

Post a Comment