如何让buildindex步骤在mac OS X终端上的semanticvectors java包中工作?

如何让buildindex步骤在mac OS X终端上的semanticvectors java包中工作?,java,macos,vector,semantics,Java,Macos,Vector,Semantics,我正在尝试使用语义向量。以下是一些链接: 不管怎样,我正在输入javapitt.search.semanticvectors.BuildIndex,但是我缺少结果 我下面的当前部分是“构建和搜索模型”。 我能够使用ant命令成功编译包,并且我确实完成了第一步,首先使用以下命令设置类路径: export CLASSPATH=./lib/lucene-core-3.6.2.jar:./… 然后输入 java org.apache.lucene.demo.IndexFiles -docs . 但

我正在尝试使用语义向量。以下是一些链接:

不管怎样,我正在输入
javapitt.search.semanticvectors.BuildIndex
,但是我缺少结果

我下面的当前部分是“构建和搜索模型”。 我能够使用ant命令成功编译包,并且我确实完成了第一步,首先使用以下命令设置类路径:

export CLASSPATH=./lib/lucene-core-3.6.2.jar:./…
然后输入

java org.apache.lucene.demo.IndexFiles -docs .
但是,下一步我会遇到以下错误:

user:/home/data/SemanticVectors/semant… java pitt.search.semanticvectors.BuildIndex
Exception in thread "main" java.lang.NoClassDefFoundError: pitt/search/semanticvectors/BuildIndex
Caused by: java.lang.ClassNotFoundException: pitt.search.semanticvectors.BuildIndex
 at java.net.URLClassLoader$1.run(URLClassLo…
at java.security.AccessController.doPrivile… Method)
at java.net.URLClassLoader.findClass(URLCla…
at java.lang.ClassLoader.loadClass(ClassLoa…
at sun.misc.Launcher$AppClassLoader.loadCla…
at java.lang.ClassLoader.loadClass(ClassLoa…
Could not find the main class: pitt.search.semanticvectors.BuildIndex. Program will exit.

我正在mac OS X上使用一个终端,正如我在你的帖子中看到的,你似乎没有提供指向semanticvectors-X.X.jar文件的路径,如中所示

export CLASSPATH=./lib/lucene-core-3.6.2.jar:./…
一旦这一改变完成,它应该会起作用