Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wait for Runtime.getRuntime().exec to finish?  RSS feed

 
N.S. James
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a chunk of code that I would like to run an external application from within Java. However, this external app i need to run until it closes itself, before Java continues.

However, when i run the code ive got, the external app im running terminates, which means the rest of the program cannot access it.

Any ideas?

Ps. This is the code...

 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read When Runtime.exec() won't and apply everything it says to your code.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!