Could not find clojure / core / async__init.class or clojure / core / async.clj on classpath

Does anyone know why I am getting the error below? I read the answers to similar questions that recommended using Leiningen, which I did below and still get an error.

MacBook-Pro:~ xxx$ lein new app test 

Create a project called test based on the application template.

 MacBook-Pro:~ xxx$ cd test MacBook-Pro:test xxx$ lein repl 

The nREPL server is running on port 59623 on host 127.0.0.1

REPL-y 0.2.1

Clojure 1.5.1

Documents: (doc function-name-here)

(find-doc "part-of-name-here")

Source: (source-name-here)

Javadoc: (javadoc java-object-or-class-here)

Output: Control + D or (output) or (output)

Results: stored in vars * 1, * 2, * 3, exception in * e

 test.core=> (require '[clojure.core.async :as async :refer :all]) 

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

test.core =>


I also tried through 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 find clojure / core / async__init.class or clojure / core / async.clj in the classpath: clojure.lang.RT.load (RT.java:443)

user>

+7
classpath clojure leiningen
source share
1 answer

You need to add it to the project.clj file. For more information on the current version, see README . After making the necessary changes to project.clj, you need to restart the replica.

+11
source share

All Articles