title: LoggerFactory.getLogger cannot be resolved to a type
body: <p>I setup a basic Java program. I am following this <a href="http://www.slf4j.org/manual.html" rel="nofollow noreferrer">tutorial</a> and have this exact code:</p>
  <pre><code>import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  
  public class HelloWorld {
    public static void main(String[] args) {
      Logger logger = LoggerFactory.getLogger(HelloWorld.class);
      logger.info(&quot;Hello World&quot;);
    }
  }
  </code></pre>
  <p>I have the jars slf4j-api-1.7.5.jar and slf4j-log4j12-1.7.5 jar on my build path. I do not understand what gives, the getLogger method exists in the LoggerFactory class which I can F3 (source code look-up) to. I Googled about this and appear to be the only dope with this problem. Any ideas?</p>
  <p>Here is my .classpath for Eclipse:</p>
  <pre><code>&lt;xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;classpath&gt;
     &lt;classpathentry kind=&quot;src&quot; path=&quot;src&quot;/&gt;
     &lt;classpathentry kind=&quot;con&quot; path=&quot;org.eclipse.jdit..../&gt;
     &lt;classpathentry kind=&quot;lib&quot; path=&quot;/home/Desktop/slf4j-api-1.7.5.jar&quot; sourcepath=&quot;/home/Desktop/slf4j-api-1.7.5.jar&quot;/&gt;
     &lt;classpathentry kind=&quot;lib&quot; path=&quot;slf4j-log4j12-1.7.5.jar&quot;/&gt;
     &lt;classpathentry kind=&quot;lib&quot; path=&quot;log4j-1.2.17.jar&quot;/&gt;
     &lt;classpathentry kind=&quot;output&quot; path=&quot;bin&quot;/&gt;
  &lt;/classpath&gt;
  </code></pre>