Click to See Complete Forum and Search --> : shutting down


xylex_blaiste
07-15-2003, 08:39 AM
i've read in some forum that you can shutdown/restart a Windows system through Java. i thought this wasn't possible?! since Java is supposed to be "safe..."

is this true? do tell me coz i have a project that deals with this, and right now i'm using C++ to do this (and i'm still in the process of doing it) through JNI.

this would save me a lot of time... include what class please, coz i don't see this anywhere in the source that comes with the SDK... 1.4.1+ i'm using...

thanks

xylex_blaiste
07-30-2003, 02:49 AM
i guess it can't be done. whoever said that in that other forum was most probably **** wrong. back to C++....o heck! hehe...

ArchAngel
07-30-2003, 09:57 AM
There are ways, but they're all platform-dependant.

xylex_blaiste
08-01-2003, 02:17 AM
well do tell me man, i'm almost done with it, but it would be interesting to know how Java does it...

ArchAngel
08-01-2003, 03:37 AM
That's the point - Java doesn't. You'd have to write a native library to do it.

xylex_blaiste
08-01-2003, 06:14 AM
i had a feeling you'd tell me that....
that's what i'm doing. thanks anyway...