Your code works fine for me in the REPL. Can you provide a bit more detail 
about exactly how you are trying to execute your code?

Sean

On Jan 26, 2014, at 6:15 AM, Paul Smith <paulaaronsmit...@gmail.com> wrote:
> I am requiring clojure.java.io as such
> 
> (ns sample-project.core
>   (:require [clojure.java.io :as io]))
> 
> However, the first expression creates a file object 
> (clojure.java.io/file "test")
> #<File test>
> 
> The second expression explodes with "java.lang.RuntimeException: No such 
> namespace: io"
> (io/file "/tmp/paul-test")
> 
> But as you can see, I have created the alias in my namespace.
> 
> Why is this so?
> 
> Thanks


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to