Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System shutdown

Status
Not open for further replies.

mohansekar

Programmer
Jul 6, 2001
23
IN
Hi there,

Is there any method available to shutdown the Windows from Java without using JNI.

Thanx in advance

bye
 
Java, is a programming language that runs on many platforms and not just windows. If Sun created a method just for shutting down windows, that would go against the portablity advantages of the language. Sun would have to create a shutdown method that basically shuts down the JVM and the operating system that the program runs on. I am not aware of any such method and I dought one exists.

You would have to use JINI (eg. call a C function that specifically shuts down windows). Of course this would only be native to window OS machines.
 
I think Windows crashes enough on its own without the help of a Java API. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top