title: Apache Tomcat doesn't find Native library
body: <p>I maintained countless instances of tomcat but now I run into a problem I never ran into before. </p>
  
  <p>I get the well known log message where tomcat complains that it can't find the native lib at D:\Programme\Apache Software Foundation\Tomcat 7.0\bin:</p>
  
  <blockquote>
    <p>"The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path: D:\Programme\Apache Software Foundation\Tomcat
    7.0\bin; [...]"</p>
  </blockquote>
  
  <p>As usual I put the native lib "tcnative-1.dll" into the bin-folder of Tomcat (and yes, it is at drive D:!!), but tomcat furthermore complains the missing native lib. </p>
  
  <p>I also tried to specify -<code>Djava.library.path</code> at startup, but without success. There are no further messages in the log that may indicate other problems at startup.</p>
  
  <p>Why doesn't tomcat find the native lib?</p>
  
  <p>The web is full of stupid trial-and-error-approaches and the tomcat documentation doesn't explicitly describes under which circumstances it doesn't take the native lib in the bin-folder.</p>
  
  <p><strong>Additional info:</strong></p>
  
  <blockquote>
    <p>Apache Tomcat 7.0.8</p>
    
    <p>JVM 1.6.0_29-b11</p>
  </blockquote>