Luc,

I'm using the latest one, v1.1.0. I downloaded it here:
http://code.google.com/p/clojure-contrib/downloads/list
I'm using the same version for clojure.jar.

The strange thing is that when I inspect the content of the jar, there
is no clojure/contrib/string, but only clojure/contrib/str_utils and
clojure/contrib/str_utils2.

Also looking into the source folder, I can't find sting.clj, but only
the two I mentioned.

This leaves me puzzeled. Maybe in the last version of the contrib
libraries the string class was stripped?
Thank you.

Matteo

On May 12, 4:18 am, Luc Préfontaine <lprefonta...@softaddicts.ca>
wrote:
> Matteo,
>
> which version of clojure-contrib are you  using ? The latest has the
> String class but an earlier version may not have it.
> To see the content:
>
> jar -tf clojure-contrib.jar
>
> You should see a string.clj in the list of components in the library and
> some string$xxx.class files. If not you are using an older snapshot.
> Make sure the versions of Clojure and contrib are compatible (either all
> 1.0, all 1.1 or latest 1.2 snapshots) otherwise you will end up with
> strange behaviors.
>
> Luc
>
>
>
>
>
> On Tue, 2010-05-11 at 14:15 -0700, Mat wrote:
> > On May 11, 7:41 am, Mat <matteo.manferd...@gmail.com> wrote:
> > > Thank you very much, this time it worked perfectly.
> > > I knew it was very easy, but I could not figure it out not having all
> > > that java/shell experience.
>
> > I'm sorry to bother you again with this silly question, but on the
> > contrary of what I said I'm still not able to use the library (it was
> > a quick test on starting the REPL).
>
> > Now I'm able to start the REPL using:
>
> > java -cp clojure.jar:clojure-contrib.jar -server clojure.main
>
> > (I forgot to mention that I'm on a OS X 10.6 machine). Inside of it
> > I'm still unable to use the library. If I load a file with load-file
> > or I try to type the following:
>
> > (ns mynamespace
> >   (:use clojure.contrib.string))
>
> > as written onhttp://richhickey.github.com/clojure-contrib/string-api.html,
> > I still get the following error:
>
> > java.io.FileNotFoundException: Could not locate clojure/contrib/
> > string__init.class or clojure/contrib/string.clj on classpath:
> > (NO_SOURCE_FILE:2)
>
> > Could be a problem in the file placement? As I understood all I need
> > are the jars (clojure.jar and clojure-contrib.jar).
> > Thank you very much.
>
> > Matteo
>
> --
> 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 
> athttp://groups.google.com/group/clojure?hl=en

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