On Wed, Jun 23, 2010 at 8:36 AM, Manuel <manuel.weik...@googlemail.com> wrote: > I created a new project using leinigen; told it to download and > install clojure-contrib (along with some other things), which it does, > and everything works fine except that I can't use > clojure.contrib.math. > > If I try (:use clojure.contrib.math) I always get: > > clojure.contrib.math > [Thrown class java.lang.ClassNotFoundException]
This isn't actually a classpath problem. If you're working in the repl you should use this instead: (use 'clojure.contrib.math) The :use notation is intended for being embedded in an ns declaration at the top of your source files. If you're just going to have a regular function call then you need to quote the library name. Take a look at contrib for an example of the ns form: http://github.com/richhickey/clojure-contrib/blob/master/src/main/clojure/clojure/contrib/pprint.clj#L27 I know this is confusing! There's talk of overhauling use/require/ns, etc. to make it more uniform: http://www.assembla.com/spaces/clojure/tickets/272-load-ns-require-use-overhaul -Phil -- 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