I'm stuck with "Programming Clojure" on page 37 on a Windows 7 machine. After downloading the "examples" dir into "C:/clojure", I typed:
user> (require 'examples.introduction)
and I got
; Evaluation aborted.
java.io.FileNotFoundException: Could not locate examples/
introduction__init.class or examples/introduction.clj on classpath:
(NO_SOURCE_FILE:0)
My .emacs file looks like this:
(setq swank-clojure-extra-classpaths
(list "C:/Clojure"))
The files in C:/Clojure are there (I triple checked)
Any help will be appreciated.
Problem solved! The .emacs file should contain this line - watch out for "classpath" without the "s"):
(setq swank-clojure-classpath
(list "c:/Clojure"))
Thanks to Shawn Hoover for giving me this answer via email. (And thanks to everybody else for your hints!)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With