I have three solr 3.4.0 indexes that I want to merge, after searching I've found that there are two ways to do it:

1. Using Lucene Merge tool.
2. Merging through core admin

I am using lucene 3.4.0 and running following command:

```
java -cp d:/lucene/lucene-core-3.4.0.jar:./contrib/misc/lucene-misc-3.4.0.jarorg/apache/lucene/misc/IndexMergeTool ./newindex ./app1/solr/data/index ./app2/solr/data/index

```

but unfortunately it gives me following exception:

> 
> Exception in thread "Main Thread" java.lang.NoClassDefFoundError:
> 
> 
> org/apache/lucene/misc/IndexMergeTool
> 
> 
> 

Can anybody help me with this?