you should learn how the java class paths works
but take a look At http://github.com/technomancy/leiningen
i wish i would how found that earlier.


2010/5/10 Mat <matteo.manferd...@gmail.com>

> Hi all,
> I am totally new to clojure and this is a very simple question, but I
> spent the last two hours trying to figure this out and I need help.
>
> I'm not able to use the clojure-contrib library and I am not able to
> find instructions here on this group and anywhere on the web. Maybe
> because this should be easy, but for me it isn't.
>
> I downloaded the clojure-contrib.jar but I can't find anywhere
> instruction on the set-up (where to put the file, if some else is
> needed, ecc) to begin with.
>
> Actually I have the clojure-contrib.jar file in the same directory as
> the clojure.jar, but I don't know how to run it.
>
> I've tried running the REPL normally, but when try using
>
> (ns mynamespace
>  (:use clojure.contrib.string))
>
> in my code file (or using :require in place of :use) i get this error:
>
> java.io.FileNotFoundException: Could not locate clojure/contrib/
> string__init.class or clojure/contrib/string.clj on classpath:
> (NO_SOURCE_FILE:2)
>
> I thought then that the library must be loaded in the same command
> with clojure.jar. I tried to look on the web and found some script and
> I tried to figure out what to do from them. What I tried last is
>
> java -cp clojure.jar clojure.main clojure-contrib.jar
>
> and I get this error
>
> Exception in thread "main" java.lang.Exception: Unable to resolve
> symbol: PK in this context (clojure-contrib.jar:0)
>
> I'm not sure that what I'm doing is correct, but it's all I was able
> to figure out in two hours of trial and error. I don't know anything
> about running java from the command line. Every page I find on the
> internet on clojure-contrib just assumes that everything works and
> just uses the library.
>
> I hope that someone can help me.
> 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<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
------------------------------------------------------------
Email: patrik.kar...@gmail.com
------------------------------------------------------------

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