Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime.getRuntime block question

 
haifeng zhou
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search for and read the Javaworld article "When Runtime.exec() won't" and you'll understand.
 
Campbell Ritchie
Sheriff
Posts: 48441
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic