【问题标题】:Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath无法在类路径上找到 clojure/core/async__init.class 或 clojure/core/async.clj
【发布时间】:2013-12-01 00:09:46
【问题描述】:

有人知道我为什么会收到以下错误吗?我阅读了类似问题的答案,建议使用 Leiningen,我在下面完成了该操作,但仍然出现错误。

MacBook-Pro:~ xxx$ lein new app test

根据“app”模板生成一个名为 test 的项目。

MacBook-Pro:~ xxx$ cd test
MacBook-Pro:test xxx$ lein repl
nREPL server started on port 59623 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Docs: (doc function-name-here)
      (find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
test.core=> (require '[clojure.core.async :as async :refer :all])
**FileNotFoundException Could not locate clojure/core/async__init.class or clojure/core/async.clj on 
classpath:   clojure.lang.RT.load (RT.java:443)**

test.core=>

我也尝试过在 emacs 中通过 cider repl:

; CIDER 0.3.1 (Clojure 1.5.1, nREPL 0.2.3)
user> (require '[clojure.core.async :as async :refer :all])

FileNotFoundException Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath:   clojure.lang.RT.load (RT.java:443)

user> 

【问题讨论】:

    标签: clojure classpath leiningen


    【解决方案1】:

    您需要将其添加到您的 project.clj 文件中。有关当前版本的详细信息,请参阅README。对 project.clj 进行必要的更改后,您需要重新启动 repl。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-09
      • 1970-01-01
      • 2021-07-30
      • 1970-01-01
      相关资源
      最近更新 更多