I\'m making a frontend for a command line app. It has a very long The command line is something simliar to this:
public String liveShellCommand(){ String cmd
Use ProcessBuilder and pass it a String[]
String[] cmmm = {arg3,arg4,arg5, arg6,arg7 }; ProcessBuilder pb = new ProcessBuilder(cmmm); pb.directory(new File(tDir)); Process p = pb.start();