Possible Duplicate:
java cpu usage monitoring
I'm trying to write a program in Java that can shutdown your computer when the computer hasn't been active (like CPU usage) for an amount of time.
I have written a program that can shutdown your pc (windows/mac/linux) after an amount of time. But i don't seem to find a way to check for the CPU usage or inactivity in JAVA.
Can anyone help me pls?
kind regards,
kdlannoy