title: Execute external program
body: <p>I tried to make an application that calls an external program that I have to pass two parameters. It doesn't give any errors.</p>
  <p>The <code>program.exe</code>, written in C++, takes a picture and modifies the content of a <code>.txt</code> file.</p>
  <p>The Java program runs but it does nothing-</p>
  <p>Here is my sample code:</p>
  <pre><code>    String[] params = new String [3];
      params[0] = &quot;C:\\Users\\user\\Desktop\\program.exe&quot;;
      params[1] = &quot;C:\\Users\\user\\Desktop\\images.jpg&quot;;
      params[2] = &quot;C:\\Users\\user\\Desktop\\images2.txt&quot;;
      Runtime.getRuntime().exec(params);
  </code></pre>