This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes Power Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Power Management" Watch "Power Management" New topic

Power Management

Kevin Fonner

Joined: Sep 20, 2001
Posts: 21
Does anyone have any idea how to control Power Management with Java? I want to be able to Turn off the moniter and also turn it back on.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Well, you are going to have to talk to the operating system to get that done. Something Java does not like to muddle in.
You will probably need to do it in C and then use some JNI to integrate it into your Java program.
Of course first you have to decide WHICH operating system that you are going to write it for and figure out how to manipulate it.

"JavaRanch, where the deer and the Certified play" - David O'Meara
jQuery in Action, 3rd edition
subject: Power Management
It's not a secret anymore!