diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Runner.java b/bindings/java/src/net/hyperic/sigar/cmd/Runner.java index 9fdf3880..6768083e 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Runner.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Runner.java @@ -123,8 +123,7 @@ public class Runner { String[] pargs = new String[args.length - 1]; System.arraycopy(args, 1, pargs, 0, args.length-1); - String sigarLib = - new SigarLoader(SigarLoader.class).findJarPath("sigar.jar"); + String sigarLib = SigarLoader.getLocation(); String[] dirs = { sigarLib, "lib", "." }; for (int i=0; i