buddies i myself found the solution to check whether the process is compleated or not:
solution
Code:
try{
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("some command");
while(true)
{
try{
if(p.exitValue()==0)
{
System.out.println("process terminated");
break;
}
}
catch(Exception e)
{
System.out.println("process in execution..............");
}
}
}
catch(Exception e)
{
e.printStackTrace();
}
if there is some other solution let me know...........