I know it's quite basic question but still I am not clear about it. When I am running my jar file in background in windows using below command using bat file:
start javaw -jar myApp.jar
It start the application in background but is there any way to check if it's running or how would i kill it if I want to.
In Linux We can do ps -ef| grep JarName and then we can call kill command.How to do the same in windows. tasklist command shows java.exe instead of jar name.
Regards,
You could use
jpsto view current Java processes, then pass the output totaskkill. Call this script with the fullpackage.Classnameof the process to kill: