> I am trying to play around with the clojure-twitter library (http://
> github.com/mattrepl/clojure-twitter/tree) and it depends on clj- 
> apache-
> http (http://github.com/rnewman/clj-apache-http/tree/master).


This is my lib, so I'll answer :)

> Now when I run:
>
>   java -cp CLASSPATH twitter.clj

* Don't you mean $CLASSPATH?

> I get this error:
>
>    Exception in thread "main" java.io.FileNotFoundException: Could
> not locate com/twinql/clojure/http__init.class or com/twinql/clojure/
> http.clj on classpath:  (twitter.clj:0)
>
> When I printed my classpath in REPL, the clj-apache-http.jar is coming
> up fine. Am I missing something?

Do you also have all of clj-apache-http's dependencies on your  
classpath?

commons-logging-1.1.1.jar
httpclient-4.0-beta2.jar
httpcore-4.0-beta3.jar
httpmime-4.0-beta2.jar

(Not sure about commons-logging... ain't my choice!)

These are all in the lib/ dir.

If those aren't on the classpath, com.twinql.clojure.http won't be  
compiled correctly, and thus won't be available.

What does

     jar tf clj-apache-http.jar

print?

Feel free to reply off-list, as I doubt debugging classpaths is of  
much interest to the wider Clojure community.

-R

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