title: Solr in TomCat on Windows Server 2008 R2 - Solr doesn't start automatically
body: <p>I have followed this guide to install Solr in TomCat running on Windows Server 2008 R2.</p>
  
  <p><a href="http://drupal.org/node/1359598" rel="nofollow">http://drupal.org/node/1359598</a></p>
  
  <p>As described in step 6 of the guide I can run Solr from the command line using the following:</p>
  
  <pre><code>java -Dsolr.solr.home=c:/solr/ -jar start.jar    
  </code></pre>
  
  <p>As expected I can now see Solr at <code>http://localhost:8983/solr/</code></p>
  
  <p>If I reboot the server Solr does not start automatically. I have to run the start.jar file via the command line as shown above.</p>
  
  <p>I have tried adding the following to the Java Options in the Configure TomCat UI.</p>
  
  <pre><code>-Dsolr.solr.home=c:\solr
  </code></pre>
  
  <p>This doesn't work. The only way I can run Solr is to use the command line. I'm sure that this is a simple problem to resolve but I can't work it out. Does anyone have any idea what I've configured incorrectly?</p>
  
  <p>My technology stack is:</p>
  
  <ul>
  <li>JRE 7 </li>
  <li>TomCat 7.0 </li>
  <li>Solr 3.6.0 </li>
  <li>Windows Server 2008 R2 (IIS 7.5)</li>
  </ul>