title: Unable to run selenium web-driver scripts through build.xml using ANT
body: <p>Getting this error <strong>"error: package jxl does not exist"</strong> while executing build.xml file using command prompt/hudson tool</p>
  
  <p>I am using Testng+ant to run my existing developed selenium webdriver scripts which are in hybrid+page factory framework </p>
  
  <p>I am able to generate the testngXSLT reports when i have a scripts in a single class i.e., in a functional driven framework.</p>
  
  <p>Below is my Build.xml file.</p>
  
  <pre><code>&lt;?xml version ="1.0" encoding="iso-8859-1"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;project name="BulkInvite" default="usage" basedir="."&gt;
      &lt;!-- ========== Initialize Properties =================================== --&gt;
          &lt;property environment="env"/&gt;    
          &lt;property name="ws.home" value="${basedir}"/&gt;
          &lt;property name="ws.jars" value="D:\jar-files"/&gt;
          &lt;property name="test.dest" value="${ws.home}/build"/&gt;
          &lt;property name="test.src" value="${ws.home}/src"/&gt;
          &lt;property name="ng.result" value="test-output"/&gt;
  
      &lt;target name="setClassPath" unless="test.classpath"&gt;
              &lt;path id="classpath_jars"&gt;
                  &lt;fileset dir="${ws.jars}" includes="*.jar"/&gt;
              &lt;/path&gt;
              &lt;pathconvert pathsep=":" 
                  property="test.classpath" 
                  refid="classpath_jars"/&gt;
          &lt;/target&gt;
       &lt;target name="init" depends="setClassPath"&gt;
              &lt;tstamp&gt;
                  &lt;format property="start.time" pattern="MM/dd/yyyy hh:mm aa" /&gt;
              &lt;/tstamp&gt;
              &lt;condition property="ANT" 
                  value="${env.ANT_HOME}/bin/ant.bat" 
                  else="${env.ANT_HOME}/bin/ant"&gt;
                          &lt;os family="windows" /&gt;
              &lt;/condition&gt;
              &lt;taskdef name="testng" classpath="${test.classpath}"
                     classname="org.testng.TestNGAntTask" /&gt;
  
          &lt;/target&gt;
  
          &lt;!-- all --&gt;
          &lt;target name="all"&gt;
          &lt;/target&gt;
  
          &lt;!-- clean --&gt;
          &lt;target name="clean"&gt;
              &lt;delete dir="${test.dest}"/&gt;
          &lt;/target&gt;
  
          &lt;!-- compile --&gt;
           &lt;!-- compile --&gt;
              &lt;target name="compile" depends="init, clean" &gt; 
                  &lt;delete includeemptydirs="true" quiet="true"&gt;
                  &lt;fileset dir="${test.dest}" includes="**/*"/&gt;
                  &lt;/delete&gt;
                  &lt;echo message="making directory..."/&gt;
                  &lt;mkdir dir="${test.dest}"/&gt;
                  &lt;echo message="classpath------: ${test.classpath}"/&gt;
                  &lt;echo message="compiling..."/&gt;
                  &lt;javac 
                      debug="true" 
                      destdir="${test.dest}" 
                      srcdir="${test.src}" 
                      target="1.5" 
                      source="1.5"
                      includeantruntime="true"
                      classpath="${test.classpath}"
                  &gt;
                  &lt;/javac&gt;
  
                &lt;/target&gt;
  
  
          &lt;!-- build --&gt;
          &lt;target name="build" depends="init"&gt;
          &lt;/target&gt;
  
          &lt;!-- run --&gt;
          &lt;target name="run" depends="compile"&gt;
              &lt;testng classpath="${test.classpath}:${test.dest}" suitename="Bulkinvite_Suite"&gt;    
                  &lt;xmlfileset dir="test-output" includes="BulkinviteExecute.xml"/&gt;
              &lt;/testng&gt;
              &lt;!--
              &lt;testng classpath="${test.classpath}:${test.dest}" groups="fast"&gt;
                  &lt;classfileset dir="${test.dest}" includes="example1/*.class"/&gt;
              &lt;/testng&gt;
              --&gt;
          &lt;/target&gt;
  
  
      &lt;target name="usage"&gt;
          &lt;echo&gt;
              ant run will execute the test
          &lt;/echo&gt;
      &lt;/target&gt;
  
  
      &lt;path id="test.c"&gt;
              &lt;fileset dir="${ws.jars}" includes="*.jar"/&gt;
  
      &lt;/path&gt;
  
  
  
      &lt;target name="generateReport" &gt;
          &lt;mkdir dir="${ws.home}/XSLT_Reports/output"&gt;
          &lt;/mkdir&gt;
  
          &lt;xslt in="${ng.result}/testng-results.xml" style="src/xslt/testng-results.xsl"
              out="${ws.home}/XSLT_Reports/output/index.html" classpathref="test.c" processor="SaxonLiaison" &gt;
  
               &lt;param name="testNgXslt.outputDir" expression="${ws.home}/XSLT_Reports/output/"/&gt;
               &lt;param name="testNgXslt.showRuntimeTotals" expression="true"/&gt;
  
  
          &lt;/xslt&gt;
      &lt;/target&gt;
  
      &lt;!--using javax mailjar and javax activation jar trying to send report as zip file  --&gt;
  
      &lt;target name="sendMail" depends="generateReport"&gt;           
  
  
      &lt;zip destfile="${ws.home}/XSLT_Reports/output.zip" basedir="${ws.home}/XSLT_Reports/output"/&gt;
  
      &lt;mail
      tolist="abc.adsf@asdf.com"
      from="XXX@gmail.com"
      subject="ANT_AUTO_Generated_EMAIL__Hurraih.."
      mailhost="smtp.gmail.com"
      mailport="XXX"
      ssl="true"
      user="XXXXX@gmail.com"
      password="XXXX"&gt;
      &lt;attachments&gt;
      &lt;fileset dir="${ws.home}/XSLT_Reports/"&gt;
      &lt;include name="**/*.zip"/&gt;
      &lt;/fileset&gt;
      &lt;/attachments&gt;
  
      &lt;/mail&gt;
      &lt;/target&gt;
      &lt;/project&gt; 
  </code></pre>
  
  <p>Not able to find out the mistake ,help me in figuring out a solution... </p>