Reputation: 607
I am trying to use weka from ubuntu command line, however, when I execute the following command:
java -cp ./weka.jar weka.classifiers.trees.J48 -t /data/iris.ARFF
Then, I get
Weka exception: No source has been specified
Following it, there are a detail explanation of the usage, but I do not think I use it wrongly, since all the websites are talking about using WEKA in that way.
Could someone please help me about this?
Thanks ahead.
Upvotes: 4
Views: 8437
Reputation: 607
I have found out the reason myself.
Only on Linux.
There should not be a leading '/' in the path of .arff file.
So the correct way should be:
java -cp ./weka.jar weka.classifiers.trees.J48 -t data/iris.ARFF
instead of
java -cp ./weka.jar weka.classifiers.trees.J48 -t /data/iris.ARFF
Upvotes: 5