# Pre-compiled jar files for DL4J

**URL:** <https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477>\
**Category:** DL4J\
**Created:** [May 3, 2020, 10:10pm UTC](https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477 "2020-05-03T22:10:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdelrio](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gdelrio](https://community.konduit.ai/u/gdelrio)\
**Post date:** [May 3, 2020, 10:10pm UTC](https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477/1 "2020-05-03T22:10:10Z")

</div>

Hi,  
I’m new in DL4J. I’ve installed the examples in a linux centos 7 with 2 CUDA cards.

I’ve tested some few examples without CUDA and they worked with/without the docker. However, running the CUDA examples did not work. I realized then that several libraries (jar files) have duplicated Class entries. I’m not interested only in solving this issue for running the examples, I’d also like to run my own code once I have identified the jar files required to use DL4J with and without GPU.

I’ve spent some time looking for pre-compiled jar files for DL4J that solve these problems without any luck.

So, my question is: are there pre-compiled jar files for DL4J? If so, where are these?

The websites to build from source I could not follow…I was able to install the pre-requisites, but I could not find the instructions to build them.

I feel a little bit lost as you can see. Please help 🙂

Best,

Gabriel

---

<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:** [May 4, 2020, 9:58am UTC](https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477/2 "2020-05-04T09:58:17Z")

</div>

We don’t provide any Jar files, as DL4J has some complex dependencies, and you can’t manage them on a Jar file basis. You have to use a build tool like maven to build your project, as it will take care of all dependencies.

To learn more about that see: [https://deeplearning4j.konduit.ai/config/backends](https://deeplearning4j.konduit.ai/config/backends)

Also note: **You do not have to build DL4J from source**. Maven will download all the necessary precompiled binaries for you automatically.

---

<div class="post-metadata">

**Author:** ![gdelrio](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gdelrio](https://community.konduit.ai/u/gdelrio)\
**Post date:** [May 4, 2020, 6:16pm UTC](https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477/3 "2020-05-04T18:16:24Z")

</div>

Thanks for the clarification!

I cannot find the instructions to build the jar files using mvn though. I downloaded the pom.xml from [https://github.com/eclipse/deeplearning4j-examples/blob/master/pom.xml](https://github.com/eclipse/deeplearning4j-examples/blob/master/pom.xml) in a local dir in my linux computer. But at this point it is still not clear what should I do to build the jar files from this pom.xml file.

If I download the examples, I was able to build the jar files using maven, but if I want to build only the jar files, without the examples and all the specific jar for the examples, is that possible? If so, please let me know what to do.

Best,

Gabriel

---

<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:** [May 4, 2020, 6:25pm UTC](https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477/4 "2020-05-04T18:25:13Z")

</div>

If you don’t have experience with setting up a maven project from scratch, the easiest way is to use the provided stand alone project, that is part of the examples:  
[https://github.com/eclipse/deeplearning4j-examples/tree/master/standalone-sample-project](https://github.com/eclipse/deeplearning4j-examples/tree/master/standalone-sample-project)

just take that directory, and start from there. It contains a reasonably small set of dependencies.

---

<div class="post-metadata">

**Author:** ![gdelrio](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gdelrio](https://community.konduit.ai/u/gdelrio)\
**Post date:** [May 4, 2020, 6:35pm UTC](https://community.konduit.ai/t/pre-compiled-jar-files-for-dl4j/477/5 "2020-05-04T18:35:08Z")

</div>

OK, thanks for the patience. I’ll keep working on this.

Best,

Gabriel
