I don't use Eclipse, I use IntelliJ Idea (Thanks Ted) so I can only tell you
my experience for this particular IDE but it should give you an approach to
follow for Eclipse too.

In Idea, one has to import the Mahout jar files as dependencies into the
application. Provided that Mahout is installed properly, the jars which you
need are located under the core/target/ directory.  These jars contain all
packages, including the one which you need.






On Sun, Jul 10, 2011 at 10:11 PM, surf reta <[email protected]> wrote:

> Based on the API documentation, it seems that this FileLineIterable
>  belongs
> to
> package org.apache.mahout.common.iterator
>
> But how can I ensure to import this specific package, and where to download
> it at first?
> I already included mahout-core in the build path. Shouldn't that includes
> this specific package? Thanks.
>
> On Sun, Jul 10, 2011 at 9:55 PM, Dhruv Kumar <[email protected]> wrote:
>
> > import org.apache.mahout.common.iterator.FileLineIterable;
> >
> > In general, you should consult the API documentation of Mahout for the
> > correct packages to import.
> >
> > https://builds.apache.org//job/Mahout-Quality/javadoc/
> >
> >
> >
> >
> >
> > On Sun, Jul 10, 2011 at 9:52 PM, edwin <[email protected]> wrote:
> >
> > > For debugging, you can probably hunt it down pretty quick in the
> source.
> > > perhaps package name needs "iterator" in the example code?
> > >
> > > cheers.
> > >
> > > On Jul 10, 2011, at 6:42 PM, surf reta wrote:
> > >
> > > > Dear All,
> > > >
> > > > I am trying to compile the examples in "Mahout in Action". For
> chapter
> > > 05,
> > > > there is a program named as "GenderRescorer.java". It includes the
> > > following
> > > > class as following:
> > > >
> > > > import org.apache.mahout.common.FileLineIterable;
> > > >
> > > > However, the Eclipse gives the following error message:
> > > >
> > > > The import org.apache.mahout.common.FileLineIterable cannot be
> resolved
> > > >
> > > > I have included mahout-core library in the path. What is the reason
> > cause
> > > > the above issue and how to fix it?
> > >
> > >
> >
>

Reply via email to