Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to run multiple java files concurrently using command line?

807589Jul 29 2008 — edited Jul 29 2008
Hi,

I have to write a script to run multiple java files and c files concurrently. Say, A and C are java files and B is another binary executable file, I have to make sure they are run in the order A-B-C, then I was trying to run by using

java A & ./B & java C

But it turned out that B could run before A started... Is there any way that I can ensure that A runs before B, and B runs before C by using the command line?

Thanks a lot.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2008
Added on Jul 29 2008
17 comments
365 views