Close a batch file after running the jar file Close a batch file after running the jar file windows windows

Close a batch file after running the jar file


Use the start command before the rest of the command.


I have recently had this problem and for someone other in future, complete and simple way is here:

@echo offstart javaw -jar "nameOfJar.jar"exit

This starts jar and close CLI.

Important is the "start" command and the "javaw" command for windows environment.