title: How can I see Log4J output from a Java class started with Ant?
body: <p>When running a Java class through Ant, I was having a lot of trouble getting Log4J output, even though the log4.properties was on the classpath.  Documenting it here in case anyone else has the same problem.</p>
  
  <p>E.g.</p>
  
  <pre><code>&lt;java classname="Hello" fork="true"&gt;      
      &lt;classpath&gt; 
      &lt;fileset dir="${lib.dir}"&gt;
          &lt;include name="**/*.jar"/&gt;
      &lt;/fileset&gt;     
      &lt;/classpath&gt;
  &lt;/java&gt;
  </code></pre>