Apache Solr: Could not find or load main class org.apache.solr.util.SimplePostTool

Error

java -jar -Dc=tech_products post.jar *.xml
Error: Could not find or load main class org.apache.solr.util.SimplePostTool
Caused by: java.lang.ClassNotFoundException: org.apache.solr.util.SimplePostTool

Solution

Check the Solr Version: Ensure that you are using a version of Solr that includes the SimplePostTool. This tool was deprecated in later versions of Solr (starting from Solr 7.x) and removed in Solr 8.x. If you are using Solr 8.x or newer, SimplePostTool is no longer available, and you should use other methods such as the solr.PostTool in Java or curl commands to post data.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x