Error while executing linux command using Java -
i'm trying execute 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 im executing command has got installed dumpcap located under (/usr/local/bin)
what mistake im doing, please help
use following line, exact path:
process acquirinterfaces = runtime.getruntime().exec("/usr/local/bin/dumpcap -d");
Comments
Post a Comment