I am trying to create a process to invoke "ls *.xml".
This code works ok:
Process p=Runtime.getRuntime().exec("ls build.xml");
build.xml
This code is wrong:
Process p=Runtime.getRuntime().exec("ls *.xml");
// this is the output
Cannot run program "ls *.xml": error=2, No such file or directory
Any idea?