On 11/4/2023 00:44, Adrien Grand wrote:
Le sam. 4 nov. 2023, 01:58, Qizhi Zheng <qi...@tentnology.com.invalid> a
écrit :
*java -jar -Dc=techproducts -Dauto example\exampledocs\post.jar
example\exampledocs\**

But I always got the following error messages:

       *Error: Could not find or load main class
org.apache.solr.util.SimplePostTool*.

That post.jar file in the solr 9.4.0 download does not contain the SimplePostTool code. This is the command I just did that worked on Windows 10 Pro, in C:\Users\elyograg\Downloads\solr-9.4.0:

java -Dc=techproducts -Dauto -classpath server\solr-webapp\webapp\WEB-INF\lib\solr-core-9.4.0.jar org.apache.solr.cli.SimplePostTool example\exampledocs\*

Fellow devs: Should post.jar have included the SimplePostTool class? Should it even exist at all? The bin/post shell script uses the solr-core jar, not post.jar. As things stand, the tutorial does not work, at least on 9.4.0. I have not checked other release versions.

Thanks,
Shawn

Reply via email to