Clojure cljtime中的ClassNotFound异常

Clojure cljtime中的ClassNotFound异常,clojure,classnotfound,Clojure,Classnotfound,我的项目中有这段代码 (use 'clj-time.format) 但它似乎一直给我这样的例外 ClassNotFoundException org.joda.time.ReadablePartial java.net.URLClassLoader$1.run 我确信我已经将它添加到了类路径中,并且API是从github下载的,Clooj是一个不错的clojure IDE,尽管它不像leiningen那样是一个项目管理工具。clooj项目页面 src目录中是源代码层次结构,由 目录和.clj

我的项目中有这段代码

(use 'clj-time.format)
但它似乎一直给我这样的例外

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

我确信我已经将它添加到了类路径中,并且API是从github下载的,Clooj是一个不错的clojure IDE,尽管它不像leiningen那样是一个项目管理工具。clooj项目页面

src目录中是源代码层次结构,由 目录和.clj文件。请注意,此目录结构完全相同 与用于clojure的lein构建工具兼容。我们推荐 在clooj编辑器旁边使用lein。 要使其正常工作,如果您:

  • 在新项目时间运行lein
  • [clj time“0.5.1”]
    添加到:依赖项部分
  • 从终端运行
    lein deps
  • 重新启动clooj

你在使用Leiningen吗?@Blacksad我在使用CloojIt很可能你只在类路径上放置了
clj时间
jar,而不是
joda时间
,这取决于
clj时间
ReadablePartial
类属于
joda time
库,无法找到该类。如果您必须使用手动库管理,请从这里下载《joda time》,例如:并将其放在您的类路径上。@Vladimitaveveveve我尝试了您的建议,但似乎也不起作用 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.