'Clojure Box: classpaths

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.



Solution 1:[1]

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!)

Solution 2:[2]

Try

(setq swank-clojure-extra-classpaths ("C:/Clojure"))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rainer
Solution 2 M Aguilar