That yields ".;lib/clojure.jar", just as we'd expect.  I also tried,
"java -cp foo.clj;foo-util.clj;lib/clojure.jar clojure.main foo.clj",
but that gave the same error.  All of these classpaths work when I
comment out the calls to "(require 'foo-util)" and "(frob)" -- which
you would expect, since at that point foo.clj is just a trivial hello
world script.

So we are agreed that my clojure code *ought* to work, given the
correct class path, but it does not?  So this must be some clojure
classloader thing?  Maybe I'm doing something out of the ordinary
here, and there's a more closure-idiomatic way to do it?  It does seem
like the right approach to me that every file in a given directory
should have the same namespace.

On Fri, Feb 5, 2010 at 4:16 PM, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 05.02.2010 um 22:13 schrieb Sean Devlin:
>
>> This expression will provide a string that is the classpath
>>
>> ((into {} (System/getProperties)) "java.class.path")
>>
>> There's probably a more elegant way...  anyone?
>
> Simply (System/getProperty "java.class.path")?
>
> Sincerely
> Meikel
>
> --
> 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

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