无法在类路径中找到clojure / core / async__init.class或clojure / core / async.clj [英] Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath
问题描述
有人知道为什么我得到以下错误?我读了类似问题的答案,建议使用Leiningen,我已经在下面做了,仍然得到的错误。
MacBook -Pro:〜xxx $ lein new app test
基于'app'生成一个名为test的项目,模板。
MacBook-Pro:〜xxx $ cd test
MacBook-Pro:test xxx $ lein repl
nREPL服务器已在主机127.0.0.1的端口59623上启动
REPL-y 0.2.1
Clojure 1.5.1
文件: doc function-name-here)
(find-docpart-of-name-here > Source:(source function-name-here)
Javadoc:(javadoc java-object-or-class- here)
退出:Control + D或(退出)或(退出)
结果:存储在vars * 1,* 2,* 3中, * e
test.core => (require'[clojure.core.async:as async:refer:all])
FileNotFoundException无法在
上找到clojure / core / async__init.class或clojure / core / async.clj classpath:clojure.lang.RT.load(RT.java:443)
test.core =>
我也试过通过cider repl在emacs: / p>
; CIDER 0.3.1(Clojure 1.5.1,nREPL 0.2.3)
user> (require'[clojure.core.async:as async:refer:all])
FileNotFoundException在类路径上定位clojure / core / async__init.class或clojure / core / async.clj:clojure.lang.RT.load(RT.java:443)
user>
您需要将其添加到您的project.clj文件。有关当前版本的详细信息,请参见自述文件。对project.clj进行必要的更改后,您需要重新启动repl。
Does anyone know why I'm getting the below error? I read through answers of similar questions, which recommended using Leiningen, which I've done below and still get the error.
MacBook-Pro:~ xxx$ lein new app test
Generating a project called test based on the 'app' template.
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=>
I also tried via cider repl in emacs:
; 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>
You need to add it to your project.clj file. See the README for details for the current version. Once you make the necessary changes to project.clj, you need to restart the repl.
这篇关于无法在类路径中找到clojure / core / async__init.class或clojure / core / async.clj的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!