Apache Solr实现快速入门教程 - 错误加载主类SimplePostTool [英] Apache Solr quickstart tutorial - error while loading main class SimplePostTool

查看:1187
本文介绍了Apache Solr实现快速入门教程 - 错误加载主类SimplePostTool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面 Apache Solr实现快速入门教程。本教程遇到索引丰富的文件的目录,需要实施的Java -Dauto -Drecursive org.apache.solr.util.SimplePostTool文档/

I am following Apache Solr quickstart tutorial. The tutorial comes across indexing a directory of rich files which requires implementing java -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/ .

我得到它说的错误:无法找到或加载主类org.apache.solr.util.SimplePostTool inspite密切关注快速入门教程。我没有得到如何解决错误并继续推进本教程。

I am getting an error which says: Could not find or load main class org.apache.solr.util.SimplePostTool inspite of following the quickstart tutorial closely. I am not getting how to resolve the error and proceed ahead with the tutorial.

推荐答案

我实施的java -classpath DIST / Solr的-核心 - *罐子-Dauto -Drecursive org.apache.solr.util.SimplePostTool文档/ ,而不是的Java -Dauto -Drecursive org.apache.solr.util.SimplePostTool文档/ 。后者假定您已经设置使用出口CLASSPATH = DIST / Solr的核心 - 4.10.2.jar 而如果你没有设置环境,那里SimplePostTool环境没有比实施的java -classpath DIST / Solr的-核心 - *罐子-Dauto -Drecursive org.apache.solr.util.SimplePostTool文档/

I implemented java -classpath dist/solr-core-*jar -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/ rather than java -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/. The latter assumes that you have already set the environment for SimplePostTool using export CLASSPATH=dist/solr-core-4.10.2.jar whereas if you do not set the environment, there is no option other than implementing java -classpath dist/solr-core-*jar -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/

由于Apache用户邮件列表。

Thanks to the Apache user mailing list.

这篇关于Apache Solr实现快速入门教程 - 错误加载主类SimplePostTool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆