Saturday, November 7, 2009

how to make a jar file in a mahout project

jar is a zip file of *.class. It needs the directory to make the jar, so it can find out the needed file.

jar cvf [target ] [package]

package can be found in the *.java file.
"package org.apache.mahout.cf.taste.example.grouplens;"

..examples\target\classes>jar cvf C:\DataMining\mahout-0.1.bak\taste-web\lib\grouplens.jar org\apache\mahout\cf\taste\example\grouplens

Then, the jar will be placed in the ..\taste-web\lib folder.

1 comment:

  1. That has been a great support, appreciate it, now to make a jar file in a mahout project is simple with your guidance. Thanks

    ReplyDelete