title: running WEKA on Linux
body: <p>I am  trying to run weka on linux server.
  The steps I followed as listed below:
  1. I download a zipped archive containing Weka as given on <a href="http://www.cs.waikato.ac.nz/ml/weka/downloading.html" rel="nofollow">http://www.cs.waikato.ac.nz/ml/weka/downloading.html</a></p>
  
  <ol start="2">
  <li><p>I then unzipped the zip file.</p></li>
  <li><p>I next tried executing weka.jar using the command:</p>
  
  <p><strong>java -Djava.awt.headless=true -jar weka.jar</strong></p></li>
  </ol>
  
  <p>I also simply tried: <strong>java -jar weka.jar</strong>
  This also gives me errors.</p>
  
  <p>I have set the DISPLAY variable using setenv DISPLAY localhost:0.0. 
  I have tried other values too such as DISPLAY 0</p>
  
  <p>weka.jar has also been added to the PATH variable.</p>
  
  <p>The error I am getting is as follows:</p>
  
  <pre><code>Exception in thread "main" java.lang.ExceptionInInitializerError
  Caused by: java.awt.HeadlessException
     at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
     at java.awt.Window.&lt;init&gt;(Window.java:433)
     at java.awt.Frame.&lt;init&gt;(Frame.java:403)
     at javax.swing.JFrame.&lt;init&gt;(JFrame.java:202)
     at weka.gui.LogWindow.&lt;init&gt;(LogWindow.java:252)
     at weka.gui.GUIChooser.&lt;clinit&gt;(GUIChooser.java:215)
  Could not find the main class: weka.gui.GUIChooser. Program will exit.
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thank You</p>