views:

190

answers:

2

Hello,

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

Any help will be appreciated.

A: 

Try

(setq swank-clojure-extra-classpaths ("C:/Clojure"))
M Aguilar
Thanks, I did. Didn'T work:<code>Warning (initialization): An error occurred while loading `c:/Emacs/.emacs':Invalid function: C:/ClojureTo ensure normal operation, you should investigate and remove thecause of the error in your initialization file. Start Emacs withthe `--debug-init' option to view a complete error backtrace.</code>
Rainer
Ah. My bad. no parenthesis around the string, it is trying to evaluate it (I'm new at this, too).(setq swank-clojure-extra-classpaths "C:/Clojure")
M Aguilar
+1  A: 

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

Rainer