2

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

4
  • Are you using Leiningen ?
    – Blacksad
    Jun 25, 2013 at 8:02
  • @Blacksad i am using Clooj
    – aceminer
    Jun 25, 2013 at 8:04
  • It is very likely that you placed only clj-time jar on your classpath, but not joda-time, on which clj-time depends. ReadablePartial class, which cannot be found, belongs to joda-time library. If you must use manual library management, download joda-time, e.g. from here: sourceforge.net/projects/joda-time/files/joda-time and put it onto your classpath. Jun 25, 2013 at 9:00
  • @VladimirMatveev I have tried your suggestion but it doesnt seem to work also
    – aceminer
    Jun 25, 2013 at 9:08

1 Answer 1

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.