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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -