Pre-compiled jar files for DL4J

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 :slightly_smiling_face:



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:

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

Thanks for the clarification!

I cannot find the instructions to build the jar files using mvn though. I downloaded the pom.xml from 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.



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:

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

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