shutdown your system using Java program
// save all the open programs and files before you run this program
import java.io.*;
class Shutdown{
public static void main(String arg[]){
Runtime runtime = Runtime.getRuntime();
try{
Process proc = runtime.exec(“shutdown -s -t 0″);
System.exit(0);
}
catch(Exception e)
{
System.out.println(“e”);
}
}
}


