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

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

问题描述

我正在关注 Apache Solr 快速入门教程.本教程涉及对需要实现 java -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/ 的富文件目录进行索引.

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/ .

我收到一条错误消息:Could not find or load main class org.apache.solr.util.SimplePostTool 尽管密切关注快速入门教程.我不知道如何解决错误并继续本教程.

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-core-*jar -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/ 而不是 java -Dauto -Drecursive org.apache.solr.util.SimplePostTool docs/.后者假设您已经使用 export CLASSPATH=dist/solr-core-4.10.2.jar 为 SimplePostTool 设置了环境,而如果您不设置环境,则除了实现之外别无选择java -classpath dist/solr-core-*jar -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天全站免登陆