Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,9 @@ private static void doLoadBundledLibrary() throws IOException {
}

private static String bundledLibraryPath() {
final String os = System.getProperty("os.name").toLowerCase();
final StringBuilder path = new StringBuilder("/native/" + Environment.getClassifier() + "/");
if (!os.startsWith("windows")) {
path.append("lib");
}
path.append("opendal_java");
if (os.startsWith("windows")) {
path.append(".dll");
} else if (os.startsWith("mac")) {
path.append(".dylib");
} else {
path.append(".so");
}
return path.toString();
final String classifier = Environment.getClassifier();
final String libraryName = System.mapLibraryName("opendal_java");
return "/native/" + classifier + "/" + libraryName;
}

/**
Expand Down