From 51df2fab0293b71bec12223559c2d61c05bc1589 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 26 Nov 2022 16:33:27 -0500 Subject: [PATCH] docs --- .../test/java/com/rusefi/native_/JniSandbox.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/java_console/io/src/test/java/com/rusefi/native_/JniSandbox.java b/java_console/io/src/test/java/com/rusefi/native_/JniSandbox.java index 0675eed2e0..e9d40c273c 100644 --- a/java_console/io/src/test/java/com/rusefi/native_/JniSandbox.java +++ b/java_console/io/src/test/java/com/rusefi/native_/JniSandbox.java @@ -1,5 +1,8 @@ package com.rusefi.native_; +import com.rusefi.FileLog; + +import javax.xml.bind.SchemaOutputResolver; import java.io.File; import java.util.Arrays; @@ -22,9 +25,16 @@ public class JniSandbox { public static void loadLibrary() { 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)); - 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); } }