Shutting down one application using another.

Hi All,Is it possible to shutdown a java application from another java application. If possible, please suggest.Thanks in advance,
[151 byte] By [Dheeraj_Gabaa] at [2007-11-27 0:25:06]
# 1
I have Linux and use via exec() the native shutdown/kill-process commands. For example:Runtime.getRuntime().exec("pkill -f xyz")May be you can use native procedures of your OS too?Greetings,lacarpe
lacarpe2a at 2007-7-11 22:22:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
When you lanuch an application from another one using Runtime.getRuntime().exec(str); it provides you an instance of Processlike proc = Runtime.getRuntime().exec(str);and on proc you can use proc.destroy(); to kill the application.
sumitkchauhana at 2007-7-11 22:22:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
But "How to get the Process", associated with the Application that needs to be killed.
Dheeraj_Gabaa at 2007-7-11 22:22:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...