Getting Build Fails Error on Apache Ant build even though all dependency satisfied
<p>I am trying to build a project using Apache ANT ( all packages installed like SWT, Eclipse Indigo on Windows Xp SP3). All file are available in the corresponding directory  </p>

<p>F:\Work_Arun\Indic\trunk\indic-keyboards\build-win32-x86.xml:47: Execute failed: java.io.IOException: Cannot run program "Cl" (in directory "F:\Work_Arun\Indic\trunk\indic-keyboards\src\org\iisc\mile\indickeyboards\windows"): CreateProcess error=2, The system cannot find the file specified
Build.XML</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;project name="indic-keyboards-win32-x86" default="build"&gt;
    &lt;description&gt;indic-keyboards - A Multilingual Indic Keyboard Interface for Indic Scripts&lt;/description&gt;

    &lt;property name="debug" value="false" /&gt;
    &lt;property name="verbose" value="false" /&gt;
    &lt;property name="main.class" value="org.iisc.mile.indickeyboards.IndicKeyboards" /&gt;
    &lt;property name="swt" value="swt.jar" /&gt;

    &lt;fileset id="ImagesIcons" dir="./resources"&gt;
        &lt;patternset includes="*.ico,*.png,*.gif,*.jpg,*.jpeg" /&gt;
    &lt;/fileset&gt;

    &lt;fileset id="otherfiles" dir="."&gt;
        &lt;patternset includes="*.txt,*.conf" /&gt;
    &lt;/fileset&gt;

    &lt;fileset id="swtorg" dir="./swt"&gt;
        &lt;patternset includes="**/org/**" /&gt;
    &lt;/fileset&gt;

    &lt;fileset id="swtdll" dir="./swt"&gt;
        &lt;patternset&gt;
            &lt;include name="swt*.dll" /&gt;
            &lt;include name="version.txt" /&gt;
        &lt;/patternset&gt;
    &lt;/fileset&gt;

    &lt;fileset id="ourdll" dir="."&gt;
        &lt;patternset includes="*.dll" /&gt;
    &lt;/fileset&gt;

    &lt;target name="init" description="Initialization by creating the directory structure"&gt;
        &lt;mkdir dir="bin" /&gt;
    &lt;/target&gt;

    &lt;target name="header" depends="compile" description="Generates the platform specific header files for building libraries"&gt;
        &lt;javah destdir="./src/org/iisc/mile/indickeyboards/windows" classpath="./bin"&gt;
            &lt;class name="org.iisc.mile.indickeyboards.windows.PollThread" /&gt;
            &lt;class name="org.iisc.mile.indickeyboards.windows.OutputCharToActiveWindow" /&gt;
        &lt;/javah&gt;
    &lt;/target&gt;

    &lt;target name="build" depends="header" description="Creates the windows libraries (.dll files)"&gt;
        &lt;property environment="env" /&gt;
        &lt;echo&gt;Using JDK present at ${env.JAVA_HOME} ; Architecture : ${env.PROCESSOR_ARCHITECTURE}&lt;/echo&gt;
        &lt;exec dir="./src/org/iisc/mile/indickeyboards/windows" executable="Cl"&gt;
            &lt;arg line="-I'${env.JAVA_HOME}'\include -I'${env.JAVA_HOME}'\include\win32 -LD /Feindic-keyboards-sysHook.dll syshook.cpp /link user32.lib" /&gt;
        &lt;/exec&gt;
        &lt;exec dir="./src/org/iisc/mile/indickeyboards/windows" executable="cl"&gt;
            &lt;arg line="-I'${env.JAVA_HOME}'\include -I'${env.JAVA_HOME}'\include\win32 -LD /Feindic-keyboards-opChars.dll opChars.cpp /link user32.lib" /&gt;
        &lt;/exec&gt;
        &lt;move todir="."&gt;
            &lt;fileset dir="./src/org/iisc/mile/indickeyboards/windows"&gt;
                &lt;include name="*.dll" /&gt;
            &lt;/fileset&gt;
        &lt;/move&gt;
        &lt;delete&gt;
            &lt;fileset dir="./src/org/iisc/mile/indickeyboards/windows" includes="*.h" /&gt;
            &lt;fileset dir="./src/org/iisc/mile/indickeyboards/windows" includes="*.obj" /&gt;
            &lt;fileset dir="./src/org/iisc/mile/indickeyboards/windows" includes="*.exp" /&gt;
            &lt;fileset dir="./src/org/iisc/mile/indickeyboards/windows" includes="*.lib" /&gt;
            &lt;fileset dir="./src/org/iisc/mile/indickeyboards/windows"&gt;
                &lt;include name="lib*" /&gt;
            &lt;/fileset&gt;
        &lt;/delete&gt;
    &lt;/target&gt;

    &lt;target name="compile" depends="init" description="Compiles the java source code."&gt;
        &lt;echo&gt;Compiling ${ant.project.name}&lt;/echo&gt;
        &lt;javac srcdir="src" destdir="bin" classpath="${swt}" debug="${debug}" verbose="${verbose}" /&gt;
    &lt;/target&gt;

    &lt;target name="run" depends="build" description="Executes the project"&gt;
        &lt;echo&gt;Using Java ${ant.java.version} present at ${java.home}&lt;/echo&gt;
        &lt;java classpath="${swt}:./bin" classname="org.iisc.mile.indickeyboards.IndicKeyboards" fork="true" /&gt;
    &lt;/target&gt;

    &lt;target name="jar" depends="build" description="Packages into an executable JAR"&gt;
        &lt;mkdir dir="dist" /&gt;
        &lt;mkdir dir="swt" /&gt;
        &lt;unjar src="${swt}" dest="./swt" /&gt;

        &lt;manifest file="MANIFEST.MF"&gt;
            &lt;attribute name="Class-Path" value="." /&gt;
            &lt;attribute name="Main-Class" value="${main.class}" /&gt;
        &lt;/manifest&gt;
        &lt;jar destfile="./dist/${ant.project.name}.jar" basedir="bin" duplicate="preserve" manifest="./MANIFEST.MF"&gt;
            &lt;fileset refid="swtdll" /&gt;
            &lt;fileset refid="swtorg" /&gt;
        &lt;/jar&gt;
        &lt;delete dir="META-INF" /&gt;
        &lt;delete file="./MANIFEST.MF" /&gt;
        &lt;delete dir="swt" /&gt;
        &lt;copy todir="./dist"&gt;
            &lt;fileset refid="ourdll" /&gt;
        &lt;/copy&gt;

        &lt;mkdir dir="./dist/kblayouts" /&gt;
        &lt;copy todir="./dist/kblayouts"&gt;
            &lt;fileset dir="./kblayouts" /&gt;
        &lt;/copy&gt;

        &lt;mkdir dir="./dist/resources" /&gt;
        &lt;copy todir="./dist/resources"&gt;
            &lt;fileset dir="./resources" /&gt;
        &lt;/copy&gt;

        &lt;mkdir dir="./dist/docs" /&gt;
        &lt;copy todir="./dist/docs"&gt;
            &lt;fileset dir="./docs" /&gt;
        &lt;/copy&gt;

        &lt;copy todir="./dist"&gt;
            &lt;fileset refid="otherfiles" /&gt;
        &lt;/copy&gt;
        &lt;delete dir="./bin" /&gt;
    &lt;/target&gt;

    &lt;target name="javadoc" depends="init" description="Generates javadoc of the source"&gt;
        &lt;mkdir dir="./javadoc" /&gt;
        &lt;javadoc destdir="./javadoc" sourcepath="./src" packagenames="org.*" Private="true" /&gt;
        &lt;delete dir="./bin" /&gt;
    &lt;/target&gt;

    &lt;target name="clean" description="Clean up after compile/build."&gt;
        &lt;delete dir="./bin" /&gt;
        &lt;delete dir="./javadoc" /&gt;
        &lt;delete dir="./dist" /&gt;
        &lt;delete&gt;
            &lt;fileset dir="./" includes="*.dll" /&gt;
        &lt;/delete&gt;
    &lt;/target&gt;

&lt;/project&gt;
</code></pre>

<p>What is the cause of the error ?</p>
