docs
This commit is contained in:
parent
3a243adae9
commit
51df2fab02
|
@ -1,5 +1,8 @@
|
||||||
package com.rusefi.native_;
|
package com.rusefi.native_;
|
||||||
|
|
||||||
|
import com.rusefi.FileLog;
|
||||||
|
|
||||||
|
import javax.xml.bind.SchemaOutputResolver;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@ -22,9 +25,16 @@ public class JniSandbox {
|
||||||
|
|
||||||
public static void loadLibrary() {
|
public static void loadLibrary() {
|
||||||
String libPath = System.getProperty("java.library.path");
|
String libPath = System.getProperty("java.library.path");
|
||||||
System.out.println("Checking " + libPath);
|
System.out.println("Looking for libraries at " + libPath);
|
||||||
String[] list = new File(libPath).list((dir, name) -> name.contains(LIBNAME));
|
String[] list = new File(libPath).list((dir, name) -> name.contains(LIBNAME));
|
||||||
System.out.println(" " + Arrays.toString(list));
|
System.out.println("Matching files: " + Arrays.toString(list));
|
||||||
|
if (list.length == 0) {
|
||||||
|
if (FileLog.isWindows()) {
|
||||||
|
System.out.println("Have you invoked `make -j4 SANITIZE=no build/_rusefi_test'?");
|
||||||
|
} else {
|
||||||
|
System.out.println("Have you invoked `make -j4 SANITIZE=no build/lib_rusefi_test`?");
|
||||||
|
}
|
||||||
|
}
|
||||||
System.loadLibrary(LIBNAME);
|
System.loadLibrary(LIBNAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue