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<https://github.com/adamwynne/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

Reply via email to