how to execute a shell command from java on a mac machine..
thanks in advance
thanks in advance
Runtime fileremoval = Runtime.getRuntime();
String rem = "rm dir.class";
Process removal = fileremoval.exec(rem);
int exitVal = removal.waitFor();
System.out.println("Process Exit Value : "+ exitVal);
Comment