java.lang.UnsatisfiedLinkError: no jnipython in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1738)
at org.bytedeco.javacpp.Loader.load(Loader.java:1345)
at org.bytedeco.javacpp.Loader.load(Loader.java:1157)
at org.bytedeco.javacpp.Loader.load(Loader.java:1133)
at org.bytedeco.cpython.global.python.(python.java:14)
at org.bytedeco.cpython.helper.python.Py_GetPathString(python.java:35)
at org.bytedeco.cpython.helper.python.Py_AddPath(python.java:75)
at org.bytedeco.cpython.helper.python.Py_AddPath(python.java:69)
at org.nd4j.python4j.PythonExecutioner.initPythonPath(PythonExecutioner.java:333)
at org.nd4j.python4j.PythonExecutioner.init(PythonExecutioner.java:79)
at org.nd4j.python4j.PythonExecutioner.(PythonExecutioner.java:70)
at org.nd4j.python4j.PythonGIL.(PythonGIL.java:41)
at com.pcng.idea.ner.Py4jTest.main(Py4jTest.java:18)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: Can’t find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:384)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:228)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:170)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1685)
… 12 more
Python4j can’t find dependent libraries but all libraries do in the .javacpp folder in win7 and jdk17
@SidneyLann we haven’t tested on jdk 17. I highly doubt that’s the problem but I know jdk 16+ introduces mandatory modules. We added module support so I don’t think there’s any issues.
I would test on jdk 11 just to be sure though.
As with any javacpp library could you please follow my javacpp instructions here and post the output?
I am getting this error on Linux operating systems. Windows works without any problems.
Caused by: java.lang.UnsatisfiedLinkError: no jnind4jcpu in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2423) ~[?:?]
at java.lang.Runtime.loadLibrary0(Runtime.java:808) ~[?:?]
at java.lang.System.loadLibrary(System.java:1893) ~[?:?]
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1800) ~…
Beyond that, Sam’s posted on this a few times. Use dependencies to figure out what the clashing dependencies are. It might be anaconda related.
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Loader
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-locale-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-string-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-stdio-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-math-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-heap-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-runtime-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-convert-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-environment-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-time-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-filesystem-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-utility-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-multibyte-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-conio-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-private-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-process-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-string-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-errorhandling-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-timezone-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-namedpipe-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-handle-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l2-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-heap-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-libraryloader-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processenvironment-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-datetime-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-localization-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-sysinfo-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-debug-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-rtlsupport-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-profile-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-memory-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-util-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-interlocked-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\ucrtbase.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\concrt140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcomp140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.6-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jnijavacpp.dll
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Pointer
Debug: Locking C:\Users\Administrator.javacpp\cache before extracting
Debug: Extracting jar:file:/D:/DEV/.m2/repository/org/bytedeco/cpython/3.9.6-1.5.6/cpython-3.9.6-1.5.6-windows-x86_64.jar!/org/bytedeco/cpython/windows-x86_64/
Debug: Locking C:\Users\Administrator.javacpp\cache before extracting
Debug: Extracting jar:file:/D:/DEV/.m2/repository/org/bytedeco/cpython/3.9.6-1.5.6/cpython-3.9.6-1.5.6-windows-x86_64.jar!/org/bytedeco/cpython/windows-x86_64/
Debug: Locking C:\Users\Administrator.javacpp\cache before extracting
Debug: Extracting jar:file:/D:/DEV/.m2/repository/org/bytedeco/cpython/3.9.6-1.5.6/cpython-3.9.6-1.5.6-windows-x86_64.jar!/org/bytedeco/cpython/windows-x86_64/
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.cpython.global.python
Debug: Loading library ffi
Debug: Failed to load for ffi@.6: java.lang.UnsatisfiedLinkError: no ffi in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
Debug: Loading library ffi
Debug: Failed to load for ffi@.5: java.lang.UnsatisfiedLinkError: no ffi in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\libcrypto-1_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\libssl-1_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\python39.dll
Debug: Failed to load C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\python39.dll: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\python39.dll: Can’t find dependent libraries
Debug: Loading library python39
Debug: Failed to load for python39: java.lang.UnsatisfiedLinkError: no python39 in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll
Debug: Failed to load C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: Can’t find dependent libraries
Debug: Loading library jnipython
Debug: Failed to load for jnipython: java.lang.UnsatisfiedLinkError: no jnipython in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
java.lang.UnsatisfiedLinkError: no jnipython in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1738)
at org.bytedeco.javacpp.Loader.load(Loader.java:1345)
at org.bytedeco.javacpp.Loader.load(Loader.java:1157)
at org.bytedeco.javacpp.Loader.load(Loader.java:1133)
at org.bytedeco.cpython.global.python.(python.java:14)
at org.bytedeco.cpython.helper.python.Py_GetPathString(python.java:35)
at org.bytedeco.cpython.helper.python.Py_AddPath(python.java:75)
at org.bytedeco.cpython.helper.python.Py_AddPath(python.java:69)
at org.nd4j.python4j.PythonExecutioner.initPythonPath(PythonExecutioner.java:333)
at org.nd4j.python4j.PythonExecutioner.init(PythonExecutioner.java:79)
at org.nd4j.python4j.PythonExecutioner.(PythonExecutioner.java:70)
at org.nd4j.python4j.PythonGIL.(PythonGIL.java:41)
at com.pcng.idea.ner.Py4jTest.main(Py4jTest.java:19)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.9.6-1.5.6-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: Can’t find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:384)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:228)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:170)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1685)
… 12 more
Failed to load for ffi@.6: java.lang.UnsatisfiedLinkError: no ffi in java.library.path:
failed in this.
SidneyLann:
ffi@.6:
@SidneyLann please just post the whole thing. There’s warnings and other things in there. Not all libraries are mandatory.
I had posted all logs, the ffi fail is not the root cause then?
Failed to load for python39: java.lang.UnsatisfiedLinkError: no python39 in java.library.path:
Does it need to install python39?
@SidneyLann no you didn’t. I know what a javacpp logger debug looks like. It doesn’t post one line. There’s hundreds of lines of output. Never try to interpret what you think the problem is all it does is get in the way of me helping you.
public static void main(String[] args) {
System.setProperty("org.bytedeco.javacpp.logger.debug","true");
try (PythonGIL gil = PythonGIL.lock()) {
try (PythonGC gc = PythonGC.watch()) {
List<PythonVariable> inputs = new ArrayList<>();
inputs.add(new PythonVariable<>("x", PythonTypes.STR, "Hello "));
inputs.add(new PythonVariable<>("y", PythonTypes.STR, "World"));
PythonVariable out = new PythonVariable<>("z", PythonTypes.STR);
String code = "z = x + y";
PythonExecutioner.exec(code, inputs, Collections.singletonList(out));
System.out.println(out.getValue());
}
} catch (Throwable e) {
e.printStackTrace();
}
}
But there are no other logs here. If comment the first line, there are no debug logs.
@SidneyLann no I want the logs. I never mentioned the code. Just the logs. The full logs though.
The logs should be print by the first line, right? Why there are no logs?
I can’t read your computer and I have no clue what you’re doing. You printed something earlier that indicated that it was working fine. What do you consider “logs”? There should be output similar to what you gave me earlier.
System.setProperty(“org.bytedeco.javacpp.logger.debug”,“true”);
This line can print all logs what you need?
Yes if I wanted more I would have asked for it.
But I post such logs 1 hour ago.
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Loader
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-locale-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-string-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-stdio-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-math-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-heap-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-runtime-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-convert-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-environment-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-time-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-filesystem-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-utility-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-multibyte-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-conio-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-private-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-process-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-string-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-errorhandling-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-timezone-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-namedpipe-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-handle-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l2-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-heap-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-libraryloader-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processenvironment-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-datetime-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-localization-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-sysinfo-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-debug-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-rtlsupport-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-2-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-profile-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-memory-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-util-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-interlocked-l1-1-0.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\ucrtbase.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\concrt140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcomp140.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\javacpp-1.5.7-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jnijavacpp.dll
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Pointer
Debug: Locking C:\Users\Administrator.javacpp\cache before extracting
Debug: Extracting jar:file:/D:/DEV/.m2/repository/org/bytedeco/cpython/3.10.2-1.5.7/cpython-3.10.2-1.5.7-windows-x86_64.jar!/org/bytedeco/cpython/windows-x86_64/
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.cpython.global.python
Debug: Loading library ffi
Debug: Failed to load for ffi@.6: java.lang.UnsatisfiedLinkError: no ffi in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
Debug: Loading library ffi
Debug: Failed to load for ffi@.5: java.lang.UnsatisfiedLinkError: no ffi in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\libcrypto-1_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\libssl-1_1.dll
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\python310.dll
Debug: Failed to load C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\python310.dll: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\python310.dll: Can’t find dependent libraries
Debug: Loading library python310
Debug: Failed to load for python310: java.lang.UnsatisfiedLinkError: no python310 in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
Debug: Loading C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll
Debug: Failed to load C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: Can’t find dependent libraries
Debug: Loading library jnipython
Debug: Failed to load for jnipython: java.lang.UnsatisfiedLinkError: no jnipython in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
java.lang.UnsatisfiedLinkError: no jnipython in java.library.path: D:\DEV\jdk17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;d:\DEV\jdk1.8\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\DEV\nodejs;.
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1800)
at org.bytedeco.javacpp.Loader.load(Loader.java:1402)
at org.bytedeco.javacpp.Loader.load(Loader.java:1214)
at org.bytedeco.javacpp.Loader.load(Loader.java:1190)
at org.bytedeco.cpython.global.python.(python.java:14)
at org.bytedeco.cpython.helper.python.Py_GetPathString(python.java:35)
at org.bytedeco.cpython.helper.python.Py_AddPath(python.java:79)
at org.bytedeco.cpython.helper.python.Py_AddPath(python.java:74)
at org.nd4j.python4j.PythonExecutioner.initPythonPath(PythonExecutioner.java:333)
at org.nd4j.python4j.PythonExecutioner.init(PythonExecutioner.java:79)
at org.nd4j.python4j.PythonExecutioner.(PythonExecutioner.java:70)
at org.nd4j.python4j.PythonGIL.(PythonGIL.java:41)
at com.pcng.idea.ner.Py4jTest.main(Py4jTest.java:19)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.javacpp\cache\cpython-3.10.2-1.5.7-windows-x86_64.jar\org\bytedeco\cpython\windows-x86_64\jnipython.dll: Can’t find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:384)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:228)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:170)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1747)
… 12 more
This was actually the root cause. So there seems to be some sort of a loader issue you have on your system. It indicates a conflict of some kind. I’m guessing a clashing python install or something. Could you look at that file in dependencies and see what shows up as red? That will show us what’s missing.
Download that here. GitHub - lucasg/Dependencies: A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
Edit: Also could you try with both 1.0.0-M1.1 and 1.0.0-M2 and let me know if there are any differences?
Does python4j have an embeded python interpretor? Need to install a python? Can’t install python 3.9.6 in win7.
@SidneyLann the python you’re installing there is embedded right in the jars. It literally is cython. You don’t need to download anything. If you need to do anything for any help I give you I will tell you. You’re wasting your own time by repeatedly guessing about what you need to do.
I don’t know why you’re ignoring help you’re being given. We’ve debugged this similar issue for about every library with javacpp bindings. Could you just do what I ask? Otherwise I don’t know how I’m supposed to help you.
I just to do things one by one. Now to try next step.