aspose file tools*
The moose likes Java in General and the fly likes kill executable jar  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "kill executable jar  ?" Watch "kill executable jar  ?" New topic
Author

kill executable jar ?

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
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

Joined: Feb 27, 2002
Posts: 8919

Java is the process because when you run a executable jar you have used
java -jar jarfilename.jar


Groovy
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
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

Joined: Feb 27, 2002
Posts: 8919

Which windows OS are you using?
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

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.


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: kill executable jar ?