bazel: Fix Loader.java

Bazel will use the `System.loadLibrary()` path
while CMake typically use the URI unpacked stuff
This commit is contained in:
Corentin Le Molgat
2023-02-22 15:12:01 +01:00
committed by Mizux Seiha
parent f2c54259e4
commit 1ae193343a

View File

@@ -104,7 +104,12 @@ public class Loader {
public static synchronized void loadNativeLibraries() {
if (!loaded) {
try {
// prints the name of the Operating System
//System.out.println("OS: " + System.getProperty("os.name"));
//System.out.println("Library: " + System.mapLibraryName("jniortools"));
System.loadLibrary("jniortools");
loaded = true;
return;
} catch (UnsatisfiedLinkError exception) {
// Do nothing.