diff --git a/bindings/java/src/org/hyperic/sigar/cmd/Runner.java b/bindings/java/src/org/hyperic/sigar/cmd/Runner.java index a7924d63..9ae33474 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/Runner.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/Runner.java @@ -182,6 +182,13 @@ public class Runner { } } } + + if (missingJars()) { + String home = System.getenv("ANT_HOME"); //check for junit.jar + if (home != null) { + addJarDir(home + "/lib"); + } + } } Class cmd = null;