Shawn Hoover wrote:

On Wed, Jan 13, 2010 at 8:38 PM, brian <brw...@gmail.com <mailto:brw...@gmail.com>> wrote:


    I was wondering if this is the right statement for setting the
    external  classpath?

    setq swank-clojure-classpath


Another way is to use M-x swank-clojure-project. You enter a directory and it automatically adds that directory/src to the classpath. You could drop all of the shcloj-code\code into, say,
this didn't work

c:\projects\shcloj\src. M-x swank-clojure-project and at the prompt c:\projects\shcloj. Then try (require 'examples.introduction).

If that doesn't work, check the value of swank-clojure-classpath after the REPL starts: C-h v swank-clojure-classpath. Make sure it looks good and then fire up SysInternals ProcMon and filter on *.clj and see where the system is really looking.
Shawn,

The above didn't work, but apparently it doesn't pick up my .emacs file, which has

(setq swank-clojure-classpath
    (list "c:/shcloj-code/code/examples"))

itknows where home is, when it boots up, the default is my home dir, where .emacs is


when i do C-h v

swank-clojure-classpath is a variable defined in `swank-clojure.el'.
Its value is
("c:/Program Files/Clojure Box/emacs/site-lisp/../../swank-clojure/src" "c:/shcloj-code/code/examples" "c:/Program Files/Clojure Box/lib/clojure-contrib.jar" "c:/Program Files/Clojure Box/lib/clojure.jar" "c:/Program Files/Clojure Box/lib/commons-codec-1.3.jar" "c:/Program Files/Clojure Box/lib/commons-fileupload-1.2.1.jar" "c:/Program Files/Clojure Box/lib/commons-io-1.4.jar" "c:/Program Files/Clojure Box/lib/compojure.jar" "c:/Program Files/Clojure Box/lib/grizzly-http-servlet-1.9.10.jar" "c:/Program Files/Clojure Box/lib/grizzly-http-webserver-1.9.10.jar" "c:/Program Files/Clojure Box/lib/jetty-6.1.15.jar" "c:/Program Files/Clojure Box/lib/jetty-util-6.1.15.jar" "c:/Program Files/Clojure Box/lib/servlet-api-2.5-20081211.jar")

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to