clojure - cljtime 中的 ClassNotFound 异常

标签 clojure classnotfound

我的项目中有这段代码

(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/

相关文章:

java - 无法从 jar 文件启动 JavaFx 应用程序。未找到类异常

java - Peter Friese 的 Teneo 教程中的 NoClassDefFoundError

c# - Xamarin 自定义 View ClassNotFoundException

clojure - 启动 Clojure REPL 的方法?

clojure - 如何在 clojurescript 中创建 IDerefable?

clojure - test.check 生成一定长度的字符串

compiler-construction - 如何创建 Clojure Lint?

functional-programming - 我应该在 clojure 中实现 Seq 接口(interface)吗

Android Phonegap 2.2 网络连接 : Class Not Found

java - ClassNotFoundException 安卓