use SigarLoader.getLocation

This commit is contained in:
Doug MacEachern 2004-07-23 23:44:22 +00:00
parent f4bbb2f167
commit e0fc284147
1 changed files with 1 additions and 2 deletions

View File

@ -123,8 +123,7 @@ public class Runner {
String[] pargs = new String[args.length - 1]; String[] pargs = new String[args.length - 1];
System.arraycopy(args, 1, pargs, 0, args.length-1); System.arraycopy(args, 1, pargs, 0, args.length-1);
String sigarLib = String sigarLib = SigarLoader.getLocation();
new SigarLoader(SigarLoader.class).findJarPath("sigar.jar");
String[] dirs = { sigarLib, "lib", "." }; String[] dirs = { sigarLib, "lib", "." };
for (int i=0; i<dirs.length; i++) { for (int i=0; i<dirs.length; i++) {