Search code examples
deeplearning4jjava.library.path

java.lang.UnsatisfiedLinkError: no jnind4jcpu in java.library.path


I started using the 1.0.0-beta2 version of deeplearning4j and I am getting the following error when attempting to start:

java.lang.UnsatisfiedLinkError: no jnind4jcpu in java.library.path

In looking around, I came across this issue: https://github.com/deeplearning4j/nd4j/issues/1687

where the solution seemed to be an incomplete set of packages. I have confirmed that I have nd4j-native-platform-1.0.0-beta2.jar, but this jar file contains no libraries as what seemed to be the problem in the issue mentioned above.

I have looked at the maven repository and things are strange there as well:

For https://mvnrepository.com/artifact/org.nd4j/nd4j-native-platform, the list of files under "View All" seems incomplete for the 1.0.0-beta2 version and the existing jar files under older versons also don't seem to contain any binaries so I am unsure as to where the binaries are supposed to be.

Thanks,

Jason


Solution

  • Do you have a specific OS you are trying? It should work out of the box if you just use platform. Platform includes numerous dependencies. I'm not sure what "incomplete" might be, but if you browse the real maven central (not this website, please do not use it): https://repo1.maven.org/maven2/org/nd4j/nd4j-native/1.0.0-beta2/

    You'll see jars for everything here. We have pretty good coverage publishing for every OS all the way to android and IOS.