mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Anil <robin.a...@gmail.com>
Subject Re: i have met a problem when i do "Creating Vectors from Text"
Date Wed, 21 Oct 2009 08:14:15 GMT
you would need to add all the jarfiles infrom core/target/dependency to your
classpath
alternately, you can just use the mahout-core-0.2-SNAPSHOT.job file (which
has all the dependecies bundled in it)
Robin


On Wed, Oct 21, 2009 at 1:34 PM, 周峰 <feng2211@gmail.com> wrote:

> At first,i have  built a Lucene index in my directory
> "/home/zhoufeng/newdisk/newindex",then i want to create Vectors from the
> index files.
> then i met a problem
> root@master:/home/zhoufeng/mahout/trunk/utils/target# java -cp
>
> mahout-utils-0.2-SNAPSHOT.jar:/home/zhoufeng/mahout/trunk/core/target/mahout-core-0.2-SNAPSHOT.jar
> org.apache.mahout.utils.vectors.lucene.Driver --dir
> /home/zhoufeng/newdisk/newindex string --dictOut
> /home/zhoufeng/newdisk/newindex/dict.txt --output
> /home/zhoufeng/newdisk/newindex/out.txt -max 50
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli2/OptionException
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.cli2.OptionException
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class:
> org.apache.mahout.utils.vectors.lucene.Driver.  Program will exit.
>
> i do not know where is the java file
> "org.apache.commons.cli2.OptionException".
> Is It because some jar file is absent?
>
> can anyone help me? thanks
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message