Merge pull request #48 from ThadHouse/master

Load ntcore from path if extracted load fails
This commit is contained in:
Peter Johnson
2016-01-21 21:53:04 -08:00

View File

@@ -51,8 +51,11 @@ public class NetworkTablesJNI {
os.close();
is.close();
}
System.load(jniLibrary.getAbsolutePath());
try {
System.load(jniLibrary.getAbsolutePath());
} catch (UnsatisfiedLinkError e) {
System.loadLibrary("ntcore");
}
} else {
System.loadLibrary("ntcore");
}