title: Java: log4j initialization error
body: <p>I'm new in using the log4j package and I don't see the error:
  This is a very simple and straightforward code sample:</p>
  
  <pre><code>import org.apache.logging.log4j.LogManager;
  import org.apache.logging.log4j.Logger;
  
  public class TestLogger {
  
      private static Logger logger;
  
      public static void main(String[] args) {
  
          logger = LogManager.getLogger(TestLogger.class);
          logger.info("Hello");
  
      }
  }
  </code></pre>
  
  <p>When I try to compile I get this error:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NullPointerException     at
    org.apache.logging.log4j.LogManager.getLogger(LogManager.java:129)    at
    my.package.logging.TestLogger.main(TestLogger.java:15)</p>
  </blockquote>
  
  <p>I am wondering what on earth it's all supposed to mean ...</p>
  
  <p>Could you help here?</p>