1

I start a jar file by batch and want to wait for that tool to finish before I continue with the next batch command. How could I do this?

java -jar "tool.jar" parameter /wait

Would this wait for the tool to end? Or would the jar be executed asynchronously?

membersound
  • 81,582
  • 193
  • 585
  • 1,120

1 Answers1

2
call java -jar "tool.jar" parameter /wait

If you run a program or another bat file with call, the calling bat file will wait, until the called bat file finished.

jussi
  • 2,166
  • 1
  • 22
  • 37