batch file - start multiple java programs (multiple JVM) from one command -


i want start multiple java programs (multiple jvm) 1 command.

ex: have 2 different application(lets , b) solve job independently. instead of running these 2 application separately in form of 2 jvm want bundle these 2 application or module (lets cc). if start c should start , b in 2 separate window or jvm can release or deploy 1 module c in stead of , b separately.

please guide me how that.

thanks santosh

from comments, windows question, , using batch file start app, use start command in batch file (check this question more details):

start java yourclassa arg1 arg2 ... start java yourclassb arg1 arg2 ... 

if using linux/unix write shell script , add & end of java startup lines, (check this question details):

java yourclassa arg1 arg2 & java yourclassb arg1 arg2 & 

you can create java class c uses processbuilder start 2 other programs (apparently overkill problem). check this question if want that.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -