I would indeed point towards JNI for a true control over what you are doing as appose to destroy(), but that is a quick fix.

Json's solution using Sigar, is infact a JNI example. However they have...