Hi,
How can I check these resources from a Java program in Windows2000:
- CPU
- available memory
- bandwidth
thank you
Printable View
Hi,
How can I check these resources from a Java program in Windows2000:
- CPU
- available memory
- bandwidth
thank you
Hey lealea,
Java really wasn't meant to do this, but there are ways to do anything. I would use System.LoadLibrary to get the Windows Management Interface (WMI) code into your Java app, then call the WMI routines you need to get these stats. This solution is very windows centric, but it's relatively quick.
Don.
Hi Don,
thank you for giving me a direction.
Can you refer me to a simple example of loading WIN & working with its routines?
thanks alot
Note that it's been a while since I had to do this, and there could very well be a better way, but the jawin project lets you call nearly any COM interface from Java.
There are some decent samples there of calling misc. routines built into Windows.
Don.