我的项目中有这段代码
(use 'clj-time.format)
但它似乎一直给我这样的异常(exception)
ClassNotFoundException org.joda.time.ReadablePartial java.net.URLClassLoader$1.run
我确定我已将其添加到类路径中,并且 API 是从 github 下载的
最佳答案
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
- 运行新项目时间
- 将
[clj-time "0.5.1"]
添加到 :dependencies 部分 - 从终端运行
lein deps
- 重启clooj
关于clojure - cljtime 中的 ClassNotFound 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17288370/