Thank you all guys.
After so much confusion on this problem, I finally solved the problem! I just web to the mahout directory and added all the jar files of "mahout/utils/target/dependency/"
to the classpath.
Since I had used maven to install mahout, I could also use jar files in ".m2/"
folder for the dependencies but the first solution was much simpler.