title: ClassNotFoundException: dataimport.DataImportHandler
body: <p>Hi I'm using the Solr 4 beta, and I'm not a Java programmer. And I'm configuring the <a href="http://wiki.apache.org/solr/DataImportHandler" rel="nofollow">DataImportHandler</a> withing the example folder for my MySQL DB. Problem is, when I'm starting the server with:</p>
  
  <pre><code>java -jar start.jar
  </code></pre>
  
  <p>My solrconfig.xml has this:</p>
  
  <pre><code>&lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&gt;
  &lt;lst name="defaults"&gt;
   &lt;str name="config"&gt;data-config.xml&lt;/str&gt;
  &lt;/lst&gt;
  &lt;/requestHandler&gt;
  </code></pre>
  
  <p>From the other <a href="http://lucene.472066.n3.nabble.com/DataImportHandler-in-Solr-4-0-td2563053.html#a3667942" rel="nofollow">thread</a> the advise was to copy apache-solr-solrj-4.0.jar to the lib/ directory, which I did. One only difference is that in the current Solr release, the filename is: apache-solr-solrj-4.0.0-BETA.jar, but I tried to copy it with different names. Also, I added to the solrconfig.xml this line so that SolrJ would be loaded:</p>
  
  <pre><code>&lt;lib dir="/dist/" regex="apache-solr-solrj-*\.jar" /&gt;
  </code></pre>
  
  <p>Nevertheless, <strong>I'm still getting the exception</strong>:</p>
  
  <pre><code>SEVERE: null:org.apache.solr.common.SolrException: RequestHandler init failure
      at org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:168)
  .
  ....
  Caused by: java.lang.ClassNotFoundException: org.apache.solr.handler.dataimport.DataImportHandler
  </code></pre>