Jenkins Windows Node returning CreateProcess error=193
<p>I'm attempting to set up a Windows node for Jenkins (master is running on Mac/ElCapitan) to run Codeception acceptance tests.</p>

<p>The jenkins jnlp file seems to be running appropriately, Jenkins has created its directories on the Windows node.  I'm asking it to run a test via an ant build in Firefox only.  This is a successful test running on the master/Apple machine.</p>

<p>I can type "codecept" into the command prompt on the Windows Node in any directory and get the default help message.</p>

<p>I can run the test by going into the Jenkins created folders on the Windows Node machine via the command prompt with codecept run tests/acceptance/all/test.</p>

<p>When trying to do this through Jenkins from the master machine I get the following error:</p>

<pre><code>C:\jenkins\workspace\nodeTest\browser\firefox\label\Windows10\build.xml:147: Execute failed: java.io.IOException: Cannot run program "C:\jenkins\workspace\nodeTest\browser\firefox\label\Windows10\vendor\bin\codecept" (in directory "C:\jenkins\workspace\nodeTest\browser\firefox\label\Windows10"): CreateProcess error=193, %1 is not a valid Win32 application
</code></pre>

<p>The ant file:</p>

<pre><code>&lt;property environment="env"/&gt;

&lt;property name="codecept" value="${basedir}/vendor/bin/codecept"/&gt;

&lt;target name="InvalidLogin" depends="CleanPics, InvalidLoginRun" /&gt;

&lt;target name="CleanPics" description="clean out directories from previous run."&gt;
    &lt;delete dir="${basedir}/tests/_output" /&gt;
    &lt;mkdir dir="${basedir}/tests/_output" /&gt;
    &lt;mkdir dir="${basedir}/tests/_output/debug" /&gt;
</code></pre>

<p></p>

<pre><code>&lt;target name="InvalidLoginRun" description="confirm invalid credentials don't allow login"&gt;
    &lt;exec executable="${codecept}" failonerror="true"&gt;
        &lt;arg value="run" /&gt;
        &lt;arg value="--debug" /&gt;
        &lt;arg value="tests/acceptance/all/00loginsInvalidCest.php" /&gt;
        &lt;arg value="--xml" /&gt;
        &lt;arg value="--env" /&gt;
        &lt;arg value="${browser}" /&gt;
    &lt;/exec&gt;
</code></pre>

<p>

<p>Googling has led me to answers that I should be using a ShellExecute instead of a CreateProcess command but I can't figure out how to configure the Ant file to do this.  Any ideas?</p>