开发者

process.waitFor() does not seem to return the right value

I am using the below code in my application ...

Proce开发者_开发知识库ss process = Runtime.getRuntime().exec(
    "perl " + perlScript + " " + project + " " + fileName);
:
:
:
result = process.waitFor();
:
:

and this result gives the code 2 every time.....while running the application.

what could be the reason for the "reason code" ???

Thanks In Advance


The perl script that you call is returning the value 2. You need to look at the perl script to determine what that value means--there is no generic way to know why a given program returns a given value.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜