Skip to content

Commit

Permalink
fix: native path
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Sep 10, 2023
1 parent f4f1f93 commit 7861712
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ private static void init0(File tmpdir) throws Throwable {
}
String nt = settings.getProperty("native.path");
if (nt != null) {
System.load(nt);
return;
try {
System.load(nt);
return;
} catch (UnsatisfiedLinkError ignored) {
// 忽略 native.path 不可读 (文件有迁移或者其他情况时)
}
}
}
String os = System.getProperty("os.name").toLowerCase(Locale.ROOT);
Expand Down

0 comments on commit 7861712

Please sign in to comment.