954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

handle the invoked process

hello friends,

I am calling an external _ant_compile.cmd program from my java methods as

Runtime rt = Runtime.getRuntime();
                
                Process p=rt.exec(thepath);

but here, the external program starts, and starts proceeding, but the problem is this launch takes place without any relation to the original class...which means, once after i have celld this within the main program, the main program launches this, the main program then continues to do rest of the work and then finishes, yet this invoked program runs sperately...it seems to be as a different thread...what I intend to do is to wait until the sub program ends and then continue with the main program.
is this realizable?
thanks a lot

miraj0072004
Newbie Poster
22 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

Read this completely, thoroughly, and carefully and implement all of it's suggestions.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: