title: CreateProcess error=193, %1 is not a valid Win32 application in Eclipse CDT
body: <p>I'm using Eclipse CDT in Windows. I have imported a project which needs to be run by a <code>.sh</code> file. </p>
  
  <p>I built the project first, and as you can see in the picture linked below, the file <code>tcas.exe</code> is in the <code>Debug</code> folder. </p>
  
  <p>I have a script file named <code>runall.sh</code> which I want to run to pass arguments with values. It's like this:</p>
  
  <pre><code>echo "&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;running test 1"
  ../source/tcas.exe  958 1 1 2597  574 4253 0  399  400 0 0 1     &gt; ../outputs/t1
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0LvX9.png" rel="nofollow noreferrer">inside project</a></p>
  
  <p>To run the <code>runall.sh</code>, I've created an external tool like this:</p>
  
  <pre><code>Location: ${workspace_loc:/tcas/tcas/scripts/runall.sh}
  Working Directory: empty
  Arguments:  Cur_Vertical_Sep
              High_Confidence
              Two_of_Three_Reports_Valid
              Own_Tracked_Alt
              Own_Tracked_Alt_Rate
              Other_Tracked_Alt
              Alt_Layer_Value
              Up_Separation
              Down_Separation
              Other_RAC
  </code></pre>
  
  <p>When I run the external tool, it gives me the following error message:</p>
  
  <blockquote>
    <p>Exception occurred executing command line.
    Cannot run program "H:\Java Workplace\tcas\tcas\scripts\runall.sh":
    CreateProcess error=193, %1 is not a valid Win32 application"</p>
  </blockquote>
  
  <p>What is the cause of this error? What is necessary to successfully run this script?</p>
  
  <p>how can I use cygwin to make runall.sh executable ?</p>