Fix the relative path issue of JNI lib loader (#16754)
This commit is contained in:
parent
e78aff41a1
commit
a9485a4b59
@ -88,7 +88,7 @@ final class NativeLibrary {
|
|||||||
// Deletions are in the reverse order of requests, so we need to request that the directory be
|
// Deletions are in the reverse order of requests, so we need to request that the directory be
|
||||||
// deleted first, so that it is empty when the request is fulfilled.
|
// deleted first, so that it is empty when the request is fulfilled.
|
||||||
tempPath.deleteOnExit();
|
tempPath.deleteOnExit();
|
||||||
final String tempDirectory = tempPath.toString();
|
final String tempDirectory = tempPath.getCanonicalPath();
|
||||||
if (frameworkResource != null) {
|
if (frameworkResource != null) {
|
||||||
extractResource(frameworkResource, frameworkLibName, tempDirectory);
|
extractResource(frameworkResource, frameworkLibName, tempDirectory);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user