I'm trying to execute the following command using Java
Process acquirInterfaces = Runtime.getRuntime().exec("dumpcap -D");
and getting error as
java.io.IOException: Cannot run program "dumpcap": java.io.IOException: error=2, No such file or directory
Linux box where im executing this command has got installed with dumpcap which is located under (/usr/local/bin)
What is the mistake im doing, please help
Copyright Notice:Content Author:「sureshd」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18161580/error-while-executing-linux-command-using-java