Close a batch file after running the jar file
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.