title: Load log4j.properties with JAR
body: <p>I have a jar file with the following Manifest</p>
  
  <pre><code>Manifest-Version: 1.0  
  Created-By: 1.7.0_07 (Oracle Corporation)  
  Main-Class: test.Main  
  Class-Path: ./log4j.properties lib/log4j-1.2.17.jar 
  </code></pre>
  
  <p>I run the class as follows  </p>
  
  <pre><code>java -jar test.jar
  </code></pre>
  
  <p>And this is my folder</p>
  
  <pre><code>lib
  log4j.properties
  test.jar
  </code></pre>
  
  <p>Why I can't see the log4j properties file? This is what I see</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (test.Main).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  </code></pre>
  
  <p>Thank you</p>
  
  <p>SOLUTION:
  changed my classhpath in the MANIFEST to this</p>
  
  <pre><code>Class-Path: . lib/log4j-1.2.17.jar 
  </code></pre>