I want to run weka through the command line. I type in this command:
java -classpath weka.jar weka.classifiers.trees.J48 -t data/weather.arff -i
And I get this error
Exception in thread "main" java.lang.NoClassDefFoundError: weka/classifiers/tree
s/J48
Caused by: java.lang.ClassNotFoundException: weka.classifiers.trees.J48
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: weka.classifiers.trees.J48. Program will exit.
My classpath variable is set to C:\Program Files\Weka-3-4\mysql-connector-java-3.1.8-bin.jar
Please let me know. Thanks.