excute ffmpeg command from java class

i write this code to run ffmpeg from a java class but i obtain no result. how can i resolve it ?

command="ffmpeg.exe -i C:/Documents and Settings/Andrea/Desktop/Conversione/Temp/"+a+".avi -b 90 C:/Documents and Settings/Andrea/Desktop/Conversione/Temp/"+a+".mp4";

System.out.println(command);

try{

Runtime.getRuntime().exec("ffmpeg.exe -i C:/Documents and Settings/Andrea/Desktop/Conversione/Temp/"+a+".avi -b 90 C:/Documents and Settings/Andrea/Desktop/Conversione/Temp/"+a+".mp4");

}catch(Exception e){System.out.println(e);}

}

[920 byte] By [perzema] at [2007-10-2 21:08:29]
# 1

this code will wait for process exit,

command="ffmpeg.exe -i C:/Documents and Settings/Andrea/Desktop/Conversione/Temp/"+a+".avi -b 90 C:/Documents and Settings/Andrea/Desktop/Conversione/Temp/"+a+".mp4";

System.out.println(command);

try{

Process p = Runtime.getRuntime().exec(command);

p.waitFor();

if (p.exitValue() == 0) {

// do something;

}

System.out.println(p.exitValue())

}catch(Exception e){System.out.println(e);}

}

SunInformationa at 2007-7-13 23:54:18 > top of Java-index,Security,Cryptography...