From 19565d776dfa9dd69de33d79e3ae3062836f8b7e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 5 Dec 2006 16:46:56 +0000 Subject: [PATCH] ssleay32.dll depends on libeay32.dll --- .../hyperic/sigar/vmware/VMwareObject.java | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/vmware/VMwareObject.java b/bindings/java/src/org/hyperic/sigar/vmware/VMwareObject.java index d87b9306..0896850b 100644 --- a/bindings/java/src/org/hyperic/sigar/vmware/VMwareObject.java +++ b/bindings/java/src/org/hyperic/sigar/vmware/VMwareObject.java @@ -49,18 +49,25 @@ abstract class VMwareObject { } if (SigarLoader.IS_WIN32) { - File libssl = - new File(new File(lib).getParent(), - "ssleay32.dll"); - if (!libssl.exists()) { - return false; - } + File root = new File(lib).getParentFile(); + String[] libs = { + "libeay32.dll", + "ssleay32.dll" + }; - try { - System.load(libssl.getPath()); - } catch (UnsatisfiedLinkError e) { - //e.printStackTrace(); - return false; + for (int i=0; i