L
Lancelot
I had wrote a c program like below
int ret = system("ping -c 1 1.2.3.4");
the return value (0) was correct when ran just as a c program,
but when I worte it as a JNI program to called by Java functions,
the return value was not correct , it always return the value (-1),
what's wrong with this program ? Can java do this ?
thx.....
int ret = system("ping -c 1 1.2.3.4");
the return value (0) was correct when ran just as a c program,
but when I worte it as a JNI program to called by Java functions,
the return value was not correct , it always return the value (-1),
what's wrong with this program ? Can java do this ?
thx.....