You need to run these as a Java program and so the Mahout classes have to be in the classpath. You need core, math, and examples. You can add these as JARs or use Maven + Eclipse to grab them automatically. But yes you will get an error about no classes being found unless this is done.
On Wed, Sep 26, 2012 at 2:57 PM, Tintarev, N <[email protected]> wrote: > > > Thanks Sean, > > Not sure what other information I could give? I want to run the existing > code to run the Jester example. > I couldn't find a tutorial for Eclipse, so I grabbed the code (using maven > as recommended) and tried to run it as I do my regular > Eclipse projects. The jester RecommenderEvaluatorRunner won't run, I get a > NoClassDefFoundError. > > And yes, it looks like an eclipse specific issue (rather than Mahout per > se), and it's likely trivial. Still, words of wisdom from someone that's > done it from the IDE would be appreciated. > > /n. > > > > On 26/09/2012 14:29, "Sean Owen" <[email protected]> wrote: > >>This isn't really enough information... it sounds like you aren't >>actually including the right classes in the classpath of whatever you >>are running. -Djava.library.path has nothing do with it; that's for >>loading native libraries. You may want to review how you run any Java >>program and set its classpath. This is nothing to do with Mahout per >>se. >> >>On Wed, Sep 26, 2012 at 2:25 PM, Tintarev, N <[email protected]> wrote: >>> >>> >>> Hi, >>> >>> I am having a go with Mahout taste examples, but getting stuck with >>>trivial things. >>> I hope you don't mind giving me a pointer or two? >>> >>> I'm running 64bit OSx and setting it all up in Eclipse. >>> I've set up M2e and checked out the code from SCM using maven. >>> No problems, project looks fine a whole bunch of files and >>>directories, including the RecommenderEvalutatorRunners for each dataset. >>> Downloaded the Jester1 data set and converted it to .csv >>> >>> Running the evaluator directly somehow doesn't work it's like it >>>doesn't have a main class (NoClassDefFoundError). >>> Setting main class with the full path or -Djava.library.path= >>>examples.src.java.org.apache.mahout.cf.taste.example.jester didn't bear >>>any fruit either. >>> >>> The quick start which is based on command line suggests maven needs to >>>build a few things. >>> Is this possibly something I need to do in Eclipse? What did I forget >>>to do? :) >>> >>> Best regards, >>> /Nava >>> >>> >>> >>> >>> The University of Aberdeen is a charity registered in Scotland, No >>>SC013683. > > > > The University of Aberdeen is a charity registered in Scotland, No SC013683.
