diff --git a/bindings/java/src/org/hyperic/sigar/vmware/VMControlLibrary.java b/bindings/java/src/org/hyperic/sigar/vmware/VMControlLibrary.java index 49faf725..ef19302e 100644 --- a/bindings/java/src/org/hyperic/sigar/vmware/VMControlLibrary.java +++ b/bindings/java/src/org/hyperic/sigar/vmware/VMControlLibrary.java @@ -76,16 +76,28 @@ public class VMControlLibrary { } private static File getVMwareLib() { - String location = "/usr/lib/vmware"; - File lib = new File(location); - if (lib.exists()) { - //running on a VMware host - return lib; + String[] locations = { + "/usr/lib/vmware", + "/usr/local/lib/vmware", + }; + + for (int i=0; i