Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure Box: Problem with classpath (noob question)

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.

like image 256
Rainer Avatar asked Nov 15 '22 11:11

Rainer


1 Answers

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

like image 117
Rainer Avatar answered Dec 15 '22 04:12

Rainer