Q:

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?

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:
user@ubuntu:~$ ./driver agent

And each time it works perfectly fine. And I cannot reverse them in order if I do they won't work. 
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. 
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?
My OS is Linux Ubuntu 14.04. 

A:

Use "Run -> External Tools -> External Tools Configurations" to define an external tool of the type "Program", supplying the driver as the program name and your Java class as the argument. You'll probably want to check "Build before launch" under "Build". However, you won't be able to do debugging.

