java.lang.UnsatisfiedLinkError

no jnicuda in java.library.path

Samebug tips1

When installing an APK, it automatically extracts the libraries of the right arch type and has them available for System.loadLibrary. But, if you're trying to load a non-standard library, the installer won't know your app has 32bit native code.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2180

Stack trace

  • java.lang.UnsatisfiedLinkError: no jnicuda in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:945) at org.bytedeco.javacpp.Loader.load(Loader.java:750) at org.bytedeco.javacpp.Loader.load(Loader.java:657) at org.bytedeco.javacpp.cuda.<clinit>(cuda.java:10) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.bytedeco.javacpp.Loader.load(Loader.java:712) at org.bytedeco.javacpp.Loader.load(Loader.java:657) at org.bytedeco.javacpp.cublas.<clinit>(cublas.java:12) at org.nd4j.jita.allocator.context.impl.BasicContextPool.createNewCublasHandle(BasicContextPool.java:187) at org.nd4j.jita.allocator.context.impl.LimitedContextPool.fillPoolWithResources(LimitedContextPool.java:84) at org.nd4j.jita.allocator.context.impl.LimitedContextPool.<init>(LimitedContextPool.java:50) at org.nd4j.jita.handler.impl.CudaZeroHandler.<init>(CudaZeroHandler.java:127) at org.nd4j.jita.allocator.impl.AtomicAllocator.<init>(AtomicAllocator.java:120) at org.nd4j.jita.allocator.impl.AtomicAllocator.<clinit>(AtomicAllocator.java:70) at org.nd4j.linalg.jcublas.buffer.BaseCudaDataBuffer.<clinit>(BaseCudaDataBuffer.java:72) at org.nd4j.linalg.jcublas.buffer.factory.CudaDataBufferFactory.createHalf(CudaDataBufferFactory.java:396) at org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1311) at org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1282) at org.nd4j.linalg.factory.BaseNDArrayFactory.create(BaseNDArrayFactory.java:965) at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3254) at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3119) at org.deeplearning4j.examples.multigpu.MultiGpuLenetMnistExample.main(MultiGpuLenetMnistExample.java:45) Caused by: java.lang.UnsatisfiedLinkError: /home/ubuntu/.javacpp/cache/dl4j-cuda-specific-examples-0.7-SNAPSHOT-bin.jar/org/bytedeco/javacpp/linux-x86_64/libjnicuda.so: libcudart.so.7.5: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:925) ... 22 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

chocochechocoche
Once,
Unknown visitor
Unknown visitorOnce,
Lukasmcd14Lukasmcd14
Once,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
83 more bugmates