开发者

Run two JARS sequentially one after another using a BATCH file

开发者 https://www.devze.com 2023-02-02 10:02 出处:网络
I need to execute 2 jars files in sequence order.number1.jar need to run and finish its execution before number2.jar is executed.

I need to execute 2 jars files in sequence order. number1.jar need to run and finish its execution before number2.jar is executed.

How could I achieve this 开发者_StackOverflow中文版using a BATCH file under a Windows environment?

Thanks.


REM Run first and finish ...
java -jar number1.jar

REM .. then start number two.
java -jar number2.jar
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号