deeplearning4j 运行的时候nd4j报错

deeplearning4j 运行的时候提示:
Please ensure that you have an nd4j backend on your classpath

图片说明

https://github.com/deeplearning4j/dl4j-examples把项目下载下来使用。我也是这个问题,使用下载的dl4j-examples就不会报这个错误了。

这个问题是因为少引用一个Jar包。

<dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native</artifactId>
            <version>1.0.0-M2</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-api</artifactId>
            <version>1.0.0-M2</version>
        </dependency>