Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

kill executable jar ?

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i made an executable jar (using Main-Class directive in the manifest file)
my problem is that i dont know how to kill that process in windows
the running processes list shows : java.exe
is there any way to give my jar a lable ?

any id will be helpfull .

Sharon
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is the process because when you run a executable jar you have used
java -jar jarfilename.jar
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Bhat ,
i see ,
but what if i have 2 jar's running at the same time , how do i kill only one of them ?
thanks ,
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which windows OS are you using?
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should provide a possibility to exit your programm gracefully.
Killing with taskmanager should only be needed for hanging apps, and you should avoid hanging apps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic