Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • 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: 22374
42
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!