I am working in Linux/Ubuntu. I want to run a process in through my java code, which looks like below
ProcessBuilder pb = new ProcessBuilder("/usr/lib/flume-ng/bin/flume-ng",
"agent",
"-f",
"/home/c4/Flume/New/ClientAgent.config",
"-n",
"clientAgent");
pb.start();
But i get unreported exception java.io.IOException; must be caught or declared to be thrown pb.start();
as error output. Please tell me how i can run my process. Thanks.