API para usar funcionalidades do sistema operacional como reiniciar o pc

E ai povo do forum?blz?!
Alguem ai sabe, qual a API java que tem funcionalidades de desligar e reiniciar o pc?Quem souber e puder me dar orientações de como usar eu agradeço!

Nenhuma hehehehehe

Vc precisa chamar o aplicativo que faz isso no seu SO

Para windows vc usa:

[code]
import java.io.*;

public class TesteRuntime {

public static void main( String[] args ) {
	
	Runtime rt = Runtime.getRuntime();
	Process p = null;
	
	try {
		
		p = rt.exec( "rundll32.exe user.exe,ExitWindows" );
			
		BufferedReader reader = new BufferedReader(
			new InputStreamReader( p.getInputStream() ) );
		String linha;

		while ( ( linha = reader.readLine() ) != null )
        	System.out.println( linha );
		
	} catch ( IOException exc ) {
	}
	
}

}[/code]

Falow!

valeu pela orientação ,David!