mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 周峰 <feng2...@gmail.com>
Subject i have met a problem when i do "Creating Vectors from Text"
Date Wed, 21 Oct 2009 08:04:45 GMT
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