Restart

I want to restart Windows Xp through java application can i do that.if yes then how ?pl tell me . i want to restart windows while button click.ThanksHarsh
[189 byte] By [myharshdesignera] at [2007-10-2 5:39:05]
# 1
hey whts up u need to create a exe file in c or c++ and then call it from a java application and as far as i know java this is the best way to do it.coz run.dll is a dll file and i m not sure u can use it in java
unsafepilota at 2007-7-16 1:49:26 > top of Java-index,Desktop,Developing for the Desktop...
# 2
You can use DLL libraries from Java, for this you need to use the JNDI interface.This interface lets use talk to native libraries.
ractoca at 2007-7-16 1:49:26 > top of Java-index,Desktop,Developing for the Desktop...
# 3
hiyou can use Rundll32 to do that as follow..String cmd = "RUNDLL32 USER32.DLL,ExitWindowsEx";Runtime.getRuntime().exec(cmd);Timir
TimirKumarPatela at 2007-7-16 1:49:26 > top of Java-index,Desktop,Developing for the Desktop...
# 4
use sommand (shutdown) in windowsXP
ghhd_7a at 2007-7-16 1:49:26 > top of Java-index,Desktop,Developing for the Desktop...