cljtime中的ClassNotFound异常

时间:2013-06-25 02:48:45

标签: clojure classnotfound

我在我的项目中有这段代码

(use 'clj-time.format)

但它似乎一直在给我这样的例外

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

我确信我已将其添加到类路径中,并且已从github下载API

1 个答案:

答案 0 :(得分:2)

Clooj是一个不错的clojure IDE,虽然它不是像leiningen这样的项目管理工具。 clooj项目页面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.

让这个工作,如果你:

可能会有所帮助
  • download leiningen
  • run lein new peoject-time
  • [clj-time "0.5.1"]添加到:dependencies部分
  • 从终端
  • 运行lein deps
  • 重启clooj
相关问题