Apache Solr quickstart tutorial - error while loading main class SimplePostTool

后端 未结 2 1201
孤街浪徒
孤街浪徒 2021-01-25 06:43

I am following Apache Solr quickstart tutorial. The tutorial comes across indexing a directory of rich files which requires implementing java -Dauto -Drecursive org.ap

2条回答
  •  生来不讨喜
    2021-01-25 07:10

    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/

    Thanks to the Apache user mailing list.

提交回复
热议问题