还能调用.exe?学一招,只知道能有.c,.h的!我不会,帮你顶

解决方案 »

  1.   

    你的程序是不是有输出啊?
    sun官方解释:
    Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock. 就是说操作系统没有为输入、输出提供足够的缓存,导致了subprocess 被堵塞了
      

  2.   

    你可以用利用调用 exec(..)  方法返回的 Process ,把dos程序的输出截获(读它),这样就能及时把buffer空出来了。
      

  3.   

    是有一个文件的输出,能不能具体的说一下怎么用Process来清除buffer的内容,有没有成功的实例啊?