Thanks for the tips and the welcome. I have been wanting to learn clojure 
for over a year, but teaching has been keeping me busy! Summer is here and 
it's time to learn.

It appears that restarting the repl fixed that issue. I then tested the 
same code in a terminal repl and the CCW repl and I get:

CompilerException java.lang.IllegalArgumentException: Unable to resolve 
classname: IPersistentMap, compiling:(org/danlarkin/json/encoder.clj:139)

but after some further digging, I see that the JSON library is now 
Cheshire. In other words, no problems now! Thanks!

Patrick

On Sunday, May 6, 2012 6:03:58 PM UTC-4, Sean Corfield wrote:
>
> Sounds like two possibilities: 
>
> * you may need to run lein deps to pull in the dependencies? (check 
> the project's lib folder) 
> * you may need to restart your REPL in CCW so it loads the newly 
> downloaded libraries? 
>
> If you're running into CCW-specific issues, you might also try the 
> http://groups.google.com/group/clojuredev-users mailing list which is 
> for CCW. 
>
> The usual debugging advice is: try the example code in a command line 
> REPL to see whether it's a general problem (dependencies not 
> downloaded) or a CCW-specific problem (works in REPL, not in CCW). 
>
> p.s. Welcome to Clojure! 
>
> Sean 
>
>
> > I'm new to clojure and I have been working through Clojure in Action as 
> well 
> > as Chas Emerick's webcast. I created my environment in Eclipse and CCW, 
> but 
> > I am having trouble using "use" to get the json library in my program 
> > namespace. 
> > 
> > I have the leiningen project.clj use the [org.danlarkin/clojure-json 
> "1.1"] 
> > coordinate in the dependencies and it appears to load in the package 
> > explorer. However, when I run 
> > 
> > (use 'clojure.xml) 
> > 
> > (use 'org.danlarkin.json) 
> > 
> > I get the error: FileNotFoundException Could not locate 
> > org/danlarkin/json__init.class or org/danlarkin/json.clj on classpath: 
> > clojure.lang.RT.load (RT.java:430) 
> > 
> > What did I miss? Is their some other command I should use to bring in 
> JSON? 
> > If you happen to have Clojure in Action, I am working through the 
> example in 
> > Listing 3.6. 
>

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