You classpath is not correct. Unless it's a typo, :"C:solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-6.5.1.jar" is wrong, it should be: "C:/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-6.5.1.jar", note the slash before "solr".
If that's not just a typo you need to look further as to why the classpath isn't being specified correctly. Best, Erick On Thu, Aug 24, 2017 at 7:52 PM, Zheng Lin Edwin Yeo <edwinye...@gmail.com> wrote: > Hi, > > I am trying to use the IndexMergeTool to merge two indexes that are indexed > in different collections into one. Both collections have the same fields, > and are using Parent-Child Block-Join. > > When I tried to run the following command as stated from the Solr Wiki > https://cwiki.apache.org/confluence/display/solr/Merging+Indexes > > java -cp > "C:/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-6.5.1.jar":"C:solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-6.5.1.jar" > org/apache/lucene/misc/IndexMergeTool > C:/solr/collectionMerge_shard1_replica1/data/index > C:/solr/collection1_shard1_replica1/data/index > C:/solr/collection2_shard1_replica1/data/index > > I get the following error: > Error: Could not find or load main class > org.apache.lucene.misc.IndexMergeTool > > What could be causing the error? > > This is done on Solr 6.5.1 > > Regards, > Edwin