Hi,
Currently I’m developing an app which is ant project (and won’t become maven any time soon) and I would like to use deeplearning4j for some ML tasks in the app. I have already build maven project and I started adding manually required jars that I need (datavec,deeplearning4j-nn, etc). With trial and error I’ve got majority of the necessary files however in the end I’ve got backend error:
19:50:17,625 VNM-conv2[3] ERROR sNowExceptionHandler.uncaughtException 1499: Uncaught exception occurred in thread Thread[VNM-conv2[3],6,main]
java.lang.ExceptionInInitializerError
at org.visnow.vn.lib.external.readers.conv2.Conv2.onActive(Conv2.java:187)
at org.visnow.vn.engine.core.ModuleCore.onLocalActive(ModuleCore.java:589)
at org.visnow.vn.engine.main.ModuleElement.setActive(ModuleElement.java:329)
at org.visnow.vn.engine.main.ModuleElement.onActionMessage(ModuleElement.java:283)
at org.visnow.vn.engine.element.Element.nextMessage(Element.java:215)
at org.visnow.vn.engine.element.Element.run(Element.java:177)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5094)
at org.nd4j.linalg.factory.Nd4j.(Nd4j.java:270)
… 7 more
Caused by: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend
at org.nd4j.linalg.factory.Nd4jBackend.load(Nd4jBackend.java:221)
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5091)
… 8 more
I had the following jars added for backend:
nd4j-native-1.0.0-SNAPSHOT.jar
nd4j-native-1.0.0-SNAPSHOT-linux-x86_64.jar
nd4j-native-platform-1.0.0-SNAPSHOT.jar
nd4j-native-platform-1.0.0-SNAPSHOT-linux-x86_64.jar
nd4j-backend-impls-1.0.0-SNAPSHOT.jar
Someone knows how to resolve this issue?
P.S. I’m also wondering whether I need to get other jars to the project like openblas, opencv or leptonica
but I guess they are not connected with running nd4j