in order to be compatible with package and java class names, your clojure
files must not have the - , so clojure automatically replaces them with
underscores _ when searching for a file / folder / package fragment.

But inside clojure itself, when you reference the namespace by its
symbol/name, you must replace the underscores in the filename by an - , so
try :

 (ns myns
     (:use clojure.contrib.duck-streams))

HTH,

-- 
Laurent


2009/4/2 Daniel Jomphe <danieljom...@gmail.com>

>
> Thanks to everybody for their (sometimes highly detailed) answers.
>
> -- ECLIPSE --
> It's nice that contrib is indeed bundled in clojuredev. Core clojure
> works, but I get the following:
>
>  (ns myns
>      (:use clojure.contrib.duck_streams))
>
>  ==> [...].Exception: namespace 'clojure.contrib.duck_streams'
>               not found after loading '/clojure/contrib/duck_streams'
>
> -- INTELLIJ --
> I also got the very same error yesterday in IntelliJ+LaClojure, after
> adding contrib's jar.
>
> -- EMACS --
> I'm actually a user of emacs-starter-kit, but haven't updated in a
> while. If I remember well, when I started using it, I had to install
> SLIME and clojure-mode myself, since they weren't yet part of it. I'll
> have another shot at it now.
>
> ----
> I'm suspecting the problem may be with my code, but I took it out of
> Stuarts' great book's code samples.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
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