title: No X11 DISPLAY variable was set, but this program performed an operation which requires it using Putty?
body: <p>I am using Putty to connect to a Server that was running remotely  .
  To monitor the server i entered jconsole under the putty terminal </p>
  
  <p>I was getting this below exception .</p>
  
  <pre><code>[user001@test.hhh.com ~]$  jconsole
  Exception in thread "AWT-EventQueue-0" 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.&lt;init&gt;(Window.java:432)
          at java.awt.Frame.&lt;init&gt;(Frame.java:403)
          at javax.swing.JFrame.&lt;init&gt;(JFrame.java:202)
          at sun.tools.jconsole.JConsole.&lt;init&gt;(JConsole.java:97)
          at sun.tools.jconsole.JConsole$6.run(JConsole.java:770)
          at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
          at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
          at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
  [user001@test.hhh.com ~]$
  </code></pre>
  
  <p>Even though i tried changing the Putty Setting following theis site .</p>
  
  <p><a href="https://stackoverflow.com/questions/5218870/getting-a-headlessexception-no-x11-display-variable-was-set">Getting a HeadlessException: No X11 DISPLAY variable was set</a></p>
  
  <p>But still i am getting the same Exception again and again , could you please let me know how to resolve this ??</p>