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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.