• Post Reply Bookmark Topic Watch Topic
  • New Topic

Closing streams of processes openend from Java  RSS feed

 
krats ram
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I do the following, does this always kill the test.exe process (thats what I would expect)



 
Rob Spoor
Sheriff
Posts: 21133
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it? I did using notepad.exe, so I knew the program would not end before I closed the streams.

After you've tried that, try adding "p.destroy();" at the end and see what that does.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16058
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"krats stark" - please check your private messages for an administrative matter from JavaRanch.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!