anonym0us
October 21st, 2008, 12:37 PM
Hi everyone,
The title pretty much describe my problem. I am creating a swing application that could display CPU and memory load using java in Ubuntu environment. I suspect that I need to use JNI to communicate with native library in Ubuntu but I don't which and after some googling, do not really find any articles that could help. I thought of running top and parsing the output every second but I don't that is an elegant approach.
Could anyone shed some light on this?
forgot to mention: I am using java 6.
The title pretty much describe my problem. I am creating a swing application that could display CPU and memory load using java in Ubuntu environment. I suspect that I need to use JNI to communicate with native library in Ubuntu but I don't which and after some googling, do not really find any articles that could help. I thought of running top and parsing the output every second but I don't that is an elegant approach.
Could anyone shed some light on this?
forgot to mention: I am using java 6.