Ah, Java's classpath handling - a constant source of delight.

Using $CLASSPATH is not a reliable way of adjusting your classpath,  
because its contents will only be considered if you don't specifiy  
anything else on the java command line, i.e. if you start clojure like  
this

        $ java -cp clojure.jar clojure.lang.Repl

$CLASSPATH wil be ignored.

I usually set up my classpaths from within clojure via (add- 
classpath ...), this seems to be the least painful way.

Kind regards,
achim

Am 28.10.2008 um 12:42 schrieb Chanwoo Yoo:

>
> Thanks! mb. I did a stupid mistake.
>
> But It still doesn't work after correcting typing.
>
> canu-yuyi-macbook-air:duck_streams chanwoo$ pwd
> /Users/chanwoo/Documents/lisp/clojure/code/clojure/contrib/
> duck_streams
> canu-yuyi-macbook-air:duck_streams chanwoo$ ls
> duck_streams.clj
>
> ~/.profile
> "export CLASSPATH=.:/Users/chanwoo/Documents/lisp/clojure/code:
> $CLASSPATH"
>
> user=> (use 'clojure.contrib.duck-streams)
> java.io.FileNotFoundException: Could not locate Clojure resource on
> classpath: clojure/contrib/duck_streams/duck_streams.clj
>
>
> >


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