Take the 2-minute tour ×

I have written my Java to invoke naive bayes classifier with the desired parameters.

I use eclipse with m2e plugin. My file is ZClassifier.java and resides at


I am able to run it from eclipse, but I am not able to do it via command line. Kindly help me to run the same from the command line.

share|improve this question
A little more information would be helpful: What's your command line, what's the error, etc. –  DaDaDom Dec 23 '11 at 9:10

1 Answer 1

This is a java classpath question, rather a mahout question. Anyway, I think you can try this:

java -cp build/;[other jars if they not in your classpath] org.apache.mahout.classifier.bayes.ZClassifier [YOUR OWN PARAMS]

the "build" dir could be "bin" based on the version of eclipse.

share|improve this answer

Your Answer


