title: setting classpath for slf4j for java compiling
body: <p>I am having a problem setting up the <code>classpath</code> for <code>slf4j</code> for <code>compiling java files</code>.
  I tried two ways:
  1. provide the <code>classpath</code> in <code>command line</code></p>
  
  <pre><code>javac -cp /Users/page/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar src/main/java/com/scg/domain/*.java src/main/java/com/scg/util/*.java
  </code></pre>
  
  <p>This gave the following error:</p>
  
  <pre><code>src/main/java/com/scg/util/ListFactory.java:8: error: package org.slf4j does not exist
  import org.slf4j.Logger;
                  ^
  src/main/java/com/scg/util/ListFactory.java:9: error: package org.slf4j does not exist
  import org.slf4j.LoggerFactory;
  ...../long error message
  </code></pre>
  
  <ol>
  <li>I tried to <code>export</code> the <code>CLASSPATH</code> to my <code>env</code> variable.</li>
  </ol>
  
  <p><code>export CLASSPATH=/Users/page/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar</code></p>
  
  <p>This did not help either and resulted in same error, when I tried</p>
  
  <pre><code>javac src/main/java/com/scg/domain/*.java src/main/java/com/scg/util/*.java
  </code></pre>
  
  <p>I am trying to <code>compile</code> all the java files in two <code>packages</code>. but I need to have <code>slf4j</code> in my classpath<code>. but somehow I am not able to get it work.
  </code>
  Thanks</p>