use SigarLoader.getLocation
This commit is contained in:
parent
f4bbb2f167
commit
e0fc284147
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in New Issue