Link to home
Start Free TrialLog in
Avatar of Ludax
Ludax

asked on

Kill a process (when it doesn't work with the task manager)

I got a java process that I'm unable to kill whith the task manager, I can select end task on the java process but it won't close.
Is there any way to force process killing using system command or else ..?

Thanks,
Ludax
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DrugDealer
DrugDealer

In the Win32 API there are commands like TerminateProcess() which, given a process ID, can kill it. but when running a java applet you run the JVM. so you'd have to kill java.exe or javaw.exe I guess - I'm not a java programmer. if you wish I can give you Delphi sorucecode for killing a process given it's executable filename. just give me some points man! I have 5 points left! can't even ask a question.
>>just give me some points man! I have 5 points left!
>>can't even ask a question.

You cannot ask questions with expert points - so it was pretty useless to lock this question with your "answer". The TaskManager uses nothing else but "TerminateProcess()", the problem is that it will not work for all processes without enabling "SeDebugPrivilege", which the program I suggested does.
Hello Ludax, you have the ability to reject proposed answers, please reject this one from DrugDealer, so your question will remain open.  Normally Staff has the ability to reject such, but we are experiencing some problems today, that disallows this capability, and will be repaired tomorrow.

Regards,
ComTech
CS Admin @ EE
>>the problem is that it will not work for all processes
>>without enabling "SeDebugPrivilege", which the program I
>>suggested does

If "PsKill" doesn't, "ProcessExplorer" will - see:

http://www.sysinternals.com/ntw2k/freeware/procexp.shtml
Why to use 3rd programs?
In Windows resource kit you'll find utilities such as
tlist.exe - to list current processes & PIDs
kill.exe  - to kill a process - works even if Task manager cannot kill the process
>>In Windows resource kit you'll find utilities

The ResKit is not free...
Dear DrugDealer


I've rejected your proposed answer as Experts Exchange holds an experiment to work without the answer button.

See:        https://www.experts-exchange.com/jsp/communityNews.jsp
Paragraph: Site Update for Wednesday, November 06, 2002

By this rejection the Asker will be notified by mail and hopefully he will take his responsibility to finalize the question or post an additional comment.
The Asker sees a button beside every post which says "Accept This Comment As Answer" (including rejected answers) -- so if he/she thinks yours is the best, you'll be awarded the points and the grade.


EXPERTS: I will return in seven days to close this question. Please leave your thoughts and recommendations here


Thanks !

Jgould

Community Support Moderator
Experts Exchange
Question has been closed as force accepted

JGould-EE Moderator