In some cases you want to be able to do more like: - Kill the exe in case it hung. - Be able to abort the exe. - Get the exe output (to the standard output and the standard error) - Run it asynchronously. You can read on a solution at: http://developer4life.blogspot.co.il/2013/01/executing-command-line-executable-from.html
You've got all the pieces in your question. It's just a matter of putting it all together.
Something such as the following should work:
public class Test {
public static void main(String[] args) throws Exception {
String[] cmd = { "C:\\E.M. TVCC\\TVCC.exe", "-f E:\\TestVideo\\01.avi", "-o E:\\OutputFiles\\target.3gp" };
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();
}
}
That said, hard coding paths like this isn't a good idea, you should read them from somewhere; arguments to your program, a properties file, etc.