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 http://www.cs.waikato.ac.nz/ml/weka/downloading.html
I then unzipped the zip file.
I next tried executing weka.jar using the command:
java -Djava.awt.headless=true -jar weka.jar
I also simply tried: java -jar weka.jar This also gives me errors.
I have set the DISPLAY variable using setenv DISPLAY localhost:0.0. I have tried other values too such as DISPLAY 0
weka.jar has also been added to the PATH variable.
The error I am getting is as follows:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:433)
at java.awt.Frame.<init>(Frame.java:403)
at javax.swing.JFrame.<init>(JFrame.java:202)
at weka.gui.LogWindow.<init>(LogWindow.java:252)
at weka.gui.GUIChooser.<clinit>(GUIChooser.java:215)
Could not find the main class: weka.gui.GUIChooser. Program will exit.
Any help would be appreciated.
Thank You