I'm pretty sure you're missing the dependencies (in this case:
clj-oauth) for twitter-api in your Clooj classpath. Take a look at [1]
to see which.
The whole thing works in leiningen because it loads all necessary
dependencies for you.

I highly recommend to use leiningen for all dependency management,
don't copy jars around. A quick look at the readme of Clooj reveals
that it somehow supports leiningen :)

[1]: https://github.com/adamwynne/twitter-api/blob/master/project.clj

On Wed, Mar 21, 2012 at 20:42, TI Explorer vet <ye4sd9...@sneakemail.com> wrote:
> I love the premise of Clojure and the simplicity of Clooj.  I used to write
> Lisp in Emacs years ago but I'd rather not dust off the Emacs brain cells.
>
> I'm trying to write a simple Twitter client in Clojure. I've got twitter-api
> downloaded and installed and can run the example with 'lein repl', but I
> can't get it to work with Clooj.  I compiled twitter-api into a jar and
> stuck it into a "jars" subfolder.  Then I tried this in the Clooj REPL:
>
> (ns mynamespace
>
>   (:use
>
>    [twitter.oauth]
>
>    [twitter.callbacks]
>
>    [twitter.callbacks.handlers]
>
>    [twitter.api.restful])
>
>   (:import
>
>    (twitter.callbacks.protocols SyncSingleCallback)))
>
>
> and got the following error message:
>
>
>> #<FileNotFoundException java.io.FileNotFoundException: Could not locate
>> oauth/client__init.class or oauth/client.clj on classpath: >
>
>
> I'm confused, because Clooj seems to think the jar is in its classpath:
>
>
>  Classpath:
>
>   /Users/david/Documents/coaching/TPG/TwitterBot/jars
>
>   /Users/david/Documents/coaching/TPG/TwitterBot/src
>
>   /Users/david/Documents/coaching/TPG/TwitterBot/twitter-api
>
>   /Users/david/Documents/coaching/TPG/TwitterBot/jars/twitter-api-0.6.4.jar
>
>
> I can write code in Clooj, save it to disk, and use 'lein run', but I'd
> rather be able to compile a function at a time like I used to in Lisp/Emacs
> and I'm assuming this is possible in Clooj.
>
> What I am missing?
>
> --
> 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



-- 
Moritz Ulrich

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