title: In Eclipse, how to run a java program as if it's the second argument in the command prompt while running another program as the first argument?
body: <p>This is what I am trying to do. I have been running a 'driver' executable file as the first argument and a java executable file called 'agent' as the second argument in the command prompt / terminal like this:</p>
  
  <pre><code>user@ubuntu:~$ ./driver agent
  </code></pre>
  
  <p>And each time it works perfectly fine. And I cannot reverse them in order if I do they won't work. </p>
  
  <p>Yet each time if I were to test them I have to recompile my agent.java file to make it an executable and then run it from the command prompt, which is a lot of work. </p>
  
  <p>Is there anyway that I can do this in Eclipse, where I can set Eclipse to run the driver executable file (Not a java executable file, but just an external file) as the first argument like in the command prompt and run the agent.java file as the second argument in the IDE itself as I click the 'Run' button in Eclipse?</p>
  
  <p>My OS is Linux Ubuntu 14.04. </p>