hi knudfl,
Thanks for being patient and guiding me.
I've copied that into both directory and once i compile the program,
i got this error:
MemoryMonitor.java:3: package org.hyperic.sigar does not exist
import org.hyperic.sigar.Mem;
^
MemoryMonitor.java:4: package org.hyperic.sigar does not exist
import org.hyperic.sigar.Swap;
^
MemoryMonitor.java:5: package org.hyperic.sigar does not exist
import org.hyperic.sigar.Sigar;
^
MemoryMonitor.java:6: package org.hyperic.sigar does not exist
import org.hyperic.sigar.SigarException;
^
MemoryMonitor.java:11: cannot find symbol
symbol : class Sigar
location: class MemoryMonitor
private static Sigar sigar = new Sigar();
^
MemoryMonitor.java:11: cannot find symbol
symbol : class Sigar
location: class MemoryMonitor
private static Sigar sigar = new Sigar();
^
MemoryMonitor.java:22: cannot find symbol
symbol : class Mem
location: class MemoryMonitor
Mem mem = null; // assign memory and swap memory to null
^
MemoryMonitor.java:23: cannot find symbol
symbol : class Swap
location: class MemoryMonitor
Swap swap = null;
^
MemoryMonitor.java:30: cannot find symbol
symbol : class SigarException
location: class MemoryMonitor
catch (SigarException s){
^
9 errors
still, the library is not found
and sayan, thanks for the suggestion