It should be

(ns app.one.a 
  (:require [app.two.b]) 
  (:import [app.two.b Book])) 

i.e. 'app.two.b' instead of 'ns.app.two.b'

пятница, 13 апреля 2012 г., 0:03:49 UTC+6 пользователь Adam Markham написал:
>
> I have two namespaces as follows: 
>
> (ns app.one.a 
>   (:require [ns.app.two.b]) 
>   (:import [ns.app.two.b Book])) 
>
> (def b (Book. "A Book" "Adam")) 
>
>
> (ns app.two.b) 
>
> (defrecord Book [title author]) 
>
>
> However whenever I try to import the defrecord I get a 
> ClassNotFoundException thrown. I tried AOT compiling the namespace 
> containing the defrecord with (:gen-class) but it made no difference. 
>
> Is there anything that i'm doing wrong? 
>
> Thanks, 
>
> Adam

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