title: Ant Build Failed in Eclipse
body: <p>I was building an jar file of my project using ANT after searching in Google  found how do do it i referred <a href="http://www.dzone.com/tutorials/java/ant/ant-sample-build-file-jar-1.html" rel="nofollow">this</a> ink. Below is my build.xml file    </p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt; 
  &lt;project name="ExcelData" default="compress"&gt;
  
      &lt;target name="init"&gt;
          &lt;mkdir dir="build/classes" /&gt;
          &lt;mkdir dir="dist" /&gt;
      &lt;/target&gt;
  
      &lt;target name="compile" depends="init"&gt;
          &lt;javac srcdir="src" destdir="build/classes" /&gt;
      &lt;/target&gt;
  
      &lt;target name="compress" depends="compile"&gt;
              &lt;jar destfile="dist/ExcelData.jar" basedir="build/classes" /&gt;
      &lt;/target&gt;
  
      &lt;target name="execute" depends="compile"&gt;
          &lt;java classname="com.spt.excel.data.ExcelData" classpath="build/classes" /&gt;
      &lt;/target&gt;
  
      &lt;target name="clean"&gt;
          &lt;delete dir="build" /&gt;
          &lt;delete dir="dist" /&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>but the problem is the ANT building is failing. But i am getting errors as</p>
  
  <pre><code>D:\Eclipse\workspace\ExcelData\src\com\spt\excel\data\ExcelData.java:24: error: package org.slf4j does not exist`
  </code></pre>
  
  <p>And referred <a href="http://forums.drftpd.org/viewtopic.php?f=5&amp;t=2978&amp;sid=478d8abc034aafaa05b5dfa880fdbde4" rel="nofollow">this</a> link to set tools.jar.</p>
  
  <p>Can Anyone tell me where i am going wrong. Thank You in advance.</p>