WEKA readme

Decision along the way
You can change your ~/.bash_profile
export R_HOME="/Applications/R.app/Contents/MacOS/R"
export CLASSPATH="/Applications/weka-3-9-1/weka.jar"
export WEKAINSTALL="/Applications/weka-3-9-1"
export WEKA_HOME="/Applications/weka-3-9-1"
export CLASSPATH=$CLASSPATH;$WEKA_HOME/weka.jar
export HEAP_OPTION=-Xms4096m -Xmx8192m
export JAVA_COMMAND java $HEAP_OPTION
and then you can run
java weka.classifiers.bayes.NaiveBayes -t $WEKAINSTALL/data/iris.2D.arff -T $WEKAINSTALL/data/iris.2D.arff
source
share