On Nov 25, 2008, at 11:38 AM, Chouser wrote:

> On Tue, Nov 25, 2008 at 9:02 AM, Stephen C. Gilardi  
> <[EMAIL PROTECTED]> wrote:
>>
>> % java -cp clojure.jar:/tmp/clojure-contrib/src:/tmp/myclasses
>> clojure.lang.Repl
>
> The classes directory ("/tmp/myclasses" in this case) must exist
> before you start Java with it in your classpath.  You get no error at
> this point, but apparently if the directory doesn't exist it's not
> really used, even though it's shown in the java.class.parth property
> string.

Thanks, that works great! It also explains why the ant build works--it  
always creates the directory first.

Unless this changes, perhaps the Clojure AOT mechanism should refuse  
to create the directory at *compile-path* and instead require that it  
already exist. That would catch many instances of this problem and  
could provide a helpful message.

Is there any way Clojure can add *compile-path* to classpath at the  
correct level so it's recognized in all the places it needs to be? I  
gather if that were easy, Rich would have already done it.

Any ideas?

--Steve


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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