Search code examples
clojureclassnotfound

ClassNotFound Exception in cljtime


I have this piece of code in my proj

(use 'clj-time.format)

but it seems it keeps on giving me an exception like this

ClassNotFoundException org.joda.time.ReadablePartial java.net.URLClassLoader$1.run

I am sure that i have added it to the class path and the API was downloaded from github


Solution

  • Clooj is a nice clojure IDE though it is not a project management tool like leiningen. The clooj project page recommends using Leiningen to manage your dependencies.

     Inside the src directory is the source code hierarchy, composed of 
    directories and .clj files. Note this directory structure is completely 
    compatible with the lein build tool for clojure. We recommend the 
    use of lein in alongside the clooj editor.
    

    to get this working, It may help if you:

    • download leiningen
    • run lein new peoject-time
    • add [clj-time "0.5.1"] to the :dependencies section
    • run lein deps from the terminal
    • restart clooj