I am trying to run nConvert command on a input file to convert it into a JPG.
This is being done from a Java program using Runtime class.
Code snippet is as below:
Code: Select all
Runtime app = Runtime.getRuntime();
Process proc;
try
{
proc = app.exec(cmd.toString(), null, workingDirectory);
}
int exitcode = proc.waitFor();
if(exitcode = 0){
boolean bsucess = true;
}
This code is giving the exitcode value as -2.
What does this exit code represent?
How to fix it?
Please provide information.
Thanks
Arvind