File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Runtime.getRuntime block question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Runtime.getRuntime block question" Watch "Runtime.getRuntime block question" New topic
Author

Runtime.getRuntime block question

haifeng zhou
Greenhorn

Joined: Oct 30, 2009
Posts: 13

this thread is run success and no block, but next code will block, why??
Must I get the InputStream?

thanks a lot
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Search for and read the Javaworld article "When Runtime.exec() won't" and you'll understand.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37884
    
  22
Rob Prime wrote:Search for and read the Javaworld article "When Runtime.exec() won't" and you'll understand.
Far too difficult for beginning Java. Moving thread.
 
Consider Paul's rocket mass heater.
 
subject: Runtime.getRuntime block question
 
Similar Threads
why JMX can not stop
readObject() eat memory !!!
How to call an .exe inside the same jar of main class?
Stop blocked thread
the exec command is not able to deal with space some time