Wednesday, September 11, 2013

Install libraries into Clojure

This can be a bit confusing at the beginning, the loading of libraries into the Clojure project.
For this I use Eclipse and the excellent CounterClockwise.

The initial dependencies can be found in the Leiningen dependencies folder, shown below.




This is the initial project.clj file with one single dependency.



Adding the dependencies to the project.clj file


Doing the above will make Lein go and get the libs and place them in the dependencies folder as shown.




Not using Eclipse?

If Lein is installed, you can navigate to the project folder in the command line, terminal, and enter:
lein deps




No comments:

Post a Comment