Closing the IE browser thro' Java application

Hi,I have a requirement wherein I have to close the applications launched like (Internet exploer window) thro my java application.Can anyone help me on this?I tried using Runtime class Process.destroy( ) method. But still not able to find the exact one.Thanks.
[295 byte] By [TNITHY@Java_Tipsa] at [2007-11-26 15:52:39]
# 1
Are you actually launching these application in your application? Consider posting code showing what you have tried.
cotton.ma at 2007-7-8 22:12:58 > top of Java-index,Java Essentials,Java Programming...
# 2
Yes. the applications are launched by the java application which now tries to close them.
TNITHY@Java_Tipsa at 2007-7-8 22:12:58 > top of Java-index,Java Essentials,Java Programming...
# 3
You're probably creating a process that starts a second process and ends immediately. You can't close that second process because you don't have a reference to it. But do consider posting code showing what you have tried.
DrClapa at 2007-7-8 22:12:58 > top of Java-index,Java Essentials,Java Programming...
# 4
so, how to reference it?I try this also , but it won't work!Process ps = Runtime.getRuntime().exec(.....);
Jack_tta at 2007-7-8 22:12:58 > top of Java-index,Java Essentials,Java Programming...
# 5
have u now figure out the way to close the browser through java application? I also try the destroy() method but it doesn't work...don't know why..
Jack_tta at 2007-7-8 22:12:58 > top of Java-index,Java Essentials,Java Programming...
# 6

maybe this is because the code did not create the process directly, ao destory() method doesn't work as expected.

Process ps = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "my website open here")

maybe ps not reference to the process create by rundll32

then there is no way to close a browser directly from java application?

Jack_tta at 2007-7-8 22:12:58 > top of Java-index,Java Essentials,Java Programming...