Arghhh...this was causing me a lot of pain. Thanks for the reply.

On Jul 13, 11:54 pm, Richard Newman <[email protected]> wrote:
> Manoj,
>
> require is for Clojure libraries only.
>
> You probably want import:
>
> http://clojure.org/api#toc297
>
> but note that you don't need to *load* Java libraries per se, so long  
> as they're in the classpath: import simply makes the names available  
> in the current namespace.
>
> You can see this for yourself:
>
> $ java -jar /opt/clojure/clojure.jar
> Clojure 1.1.0-alpha-SNAPSHOT
> user=> (ancestors java.util.Calendar)
> #{java.lang.Object java.lang.Cloneable java.lang.Comparable  
> java.io.Serializable}
> user=> (import 'java.util.Calendar)
> java.util.Calendar
> user=> (= Calendar java.util.Calendar)
> true
>
> No loading necessary; indeed, no classpath fiddling for Calendar,  
> which is a standard Java class.
>
> -R
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to