# Trouble with Cnn Implementation

**URL:** <https://community.konduit.ai/t/trouble-with-cnn-implementation/1182>\
**Category:** DL4J\
**Created:** [February 15, 2021, 4:56pm UTC](https://community.konduit.ai/t/trouble-with-cnn-implementation/1182 "2021-02-15T16:56:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikkisingh111333](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/nikkisingh111333/32/461_2.png) [@nikkisingh111333](https://community.konduit.ai/u/nikkisingh111333)\
**Post date:** [February 15, 2021, 4:56pm UTC](https://community.konduit.ai/t/trouble-with-cnn-implementation/1182/1 "2021-02-15T16:56:31Z")

</div>

hey, i m new to deep4j and currently facing issue here’s my error take a look:

```auto
 Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void org.bytedeco.javacpp.openblas.blas_set_num_threads(int)'
	at org.bytedeco.javacpp.openblas.blas_set_num_threads(Native Method)
	at org.nd4j.linalg.cpu.nativecpu.blas.CpuBlas.setMaxThreads(CpuBlas.java:117)
	at org.nd4j.nativeblas.Nd4jBlas.<init>(Nd4jBlas.java:35)
	at org.nd4j.linalg.cpu.nativecpu.blas.CpuBlas.<init>(CpuBlas.java:12)
	at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.createBlas(CpuNDArrayFactory.java:89)
	at org.nd4j.linalg.factory.BaseNDArrayFactory.blas(BaseNDArrayFactory.java:67)
	at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.getEnvironmentInformation(NativeOpExecutioner.java:1176)
	at org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.printEnvironmentInformation(DefaultOpExecutioner.java:562)
	at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6210)
	at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:6087)
at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:201)
	at org.deeplearning4j.nn.conf.MultiLayerConfiguration$Builder.build(MultiLayerConfiguration.java:568)
	at org.deeplearning4j.nn.conf.NeuralNetConfiguration$ListBuilder.build(NeuralNetConfiguration.java:285)
	at Gamoneynew.Gamoneywelcomenew.Deep4JExamples.CNN(Deep4JExamples.java:134)
	at Gamoneynew.Gamoneywelcomenew.Deep4JExamples.main(Deep4JExamples.java:189)

```

its related bytedeco open\_blas but i dont know the clear reason behind this error i have already zip openblas files but how to solve it  
my pom.xml below:  
DL4J.VERSION=0.9.1

```auto
<dependency>
    <groupId>org.deeplearning4j</groupId>
    <artifactId>deeplearning4j-core</artifactId>
    <version>${dl4j.version}</version>
</dependency>
<dependency>
    <groupId>org.nd4j</groupId>
    <artifactId>nd4j-native</artifactId>
    <version>${dl4j.version}</version>
    </dependency>
<dependency>
    <groupId>org.nd4j</groupId>
    <artifactId>nd4j-native-platform</artifactId>
    <version>${dl4j.version}</version>
</dependency>  
<dependency>
    <groupId>org.deeplearning4j</groupId>
    <artifactId>deeplearning4j-ui_2.11</artifactId>
    <version>0.9.1</version>
</dependency>
 <dependency>
  <groupId>org.nd4j</groupId>
  <artifactId>nd4j-x86</artifactId>
  <version>0.4-rc3.8</version>
</dependency>
<dependency>
    <groupId>org.deeplearning4j</groupId>
    <artifactId>deeplearning4j-nlp</artifactId>
    <version>${dl4j.version}</version>
</dependency>    
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-messaging</artifactId>
   </dependency>
<dependency>
    <groupId>org.datavec</groupId>
    <artifactId>datavec-local</artifactId>
    <version>${dl4j.version}</version>
</dependency>
<dependency>
      <groupId>org.bytedeco</groupId>
      <artifactId>javacpp-platform</artifactId>
      <version>1.5.4</version>
    </dependency>
     <dependency>
    <groupId>org.bytedeco.javacpp-presets</groupId>
    <artifactId>openblas</artifactId>
    <version>0.3.5-1.4.4</version>
</dependency> 
<dependency>
    <groupId>org.bytedeco</groupId>
    <artifactId>openblas-platform</artifactId>
    <version>0.3.10-1.5.4</version>
</dependency>

```

please help me what am i missing

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 15, 2021, 5:10pm UTC](https://community.konduit.ai/t/trouble-with-cnn-implementation/1182/2 "2021-02-15T17:10:08Z")

</div>

Your pom.xml looks like it is all over the place.

Version 0.9.1 is **very** old and then you are also referencing an even older version of nd4jand for some reason have 2 different open blas dependencies.

You should be using version 1.0.0-beta7.

I’d suggest you start over from a known good state, i.e. from something like this: [https://github.com/eclipse/deeplearning4j-examples/blob/master/mvn-project-template/pom.xml](https://github.com/eclipse/deeplearning4j-examples/blob/master/mvn-project-template/pom.xml)
