exec is not a static function, so you cannot call Runtime.exec. Runtime.getRuntime() return an instance, It is equelent to Runtime rt = Runtime.getRuntime(); rt.exec(...);
I use it in Unix No error...and no result...Runtime.getRuntime().exec("HRts -I RAIN_hypo1.m > test");
HRts is my own program before,and test is output
there is no test file appear in the directoryand there is no error report either...faint la...>_< HELPS.O.S
总归是要在main中调用的,而main是静态的,我也将这句换到类中,但还是这个错误
编译出错啦
我刚才的贴子怎么没了??
我刚才的贴子怎么没了??
可以说一下为什么出这个错吗?
rt.exec(...);
No error...and no result...Runtime.getRuntime().exec("HRts -I RAIN_hypo1.m > test");
HRts is my own program before,and test is output
HELPS.O.S