"." should be set by default. I verified that it was set using (.
System getProperties). I also tried explicitly setting the absolute
path using -cp. No luck on either count.

-Rich-

On Mar 23, 5:14 am, revoltingdevelopment
<christopher.jay.jo...@gmail.com> wrote:
> I also had the NO_SOURCE_FILE error when using contrib packages, upon
> upgrade to 20090320.  My CLASSPATH included ".".  I had to revert to
> starting clojure with an explicit -cp.  I'm new to both Java and
> Clojure, but this led me to think my CLASSPATH was being ignored.  I
> chalked it up to my misunderstanding or not really keeping track of
> how I had things set up before, but it seemed different.
>
> On Mar 23, 9:24 am, Mark Volkmann <r.mark.volkm...@gmail.com> wrote:
>
> > On Mon, Mar 23, 2009 at 7:34 AM, Rich <rwml...@gmail.com> wrote:
>
> > > Structure.clj does call ns as shown below:
>
> > > (ns Structure)
>
> > > So, as far as I can tell, Clojure should look for Structure.clj in the
> > > class path. At least, that's what it used to do. I guess I could move
> > > all the code into a sub-directory, and rename all the namespaces--but
> > > I'd rather keep it organized the way it is, if possible.
>
> > Do you have . or the current directory in CLASSPATH?
>
> > > On Mar 23, 1:33 am, Mark Volkmann <r.mark.volkm...@gmail.com> wrote:
> > >> On Mon, Mar 23, 2009 at 4:59 AM, Rich <rwml...@gmail.com> wrote:
>
> > >> > Hi,
>
> > >> > I'd been using the 20081217 release. The following code worked, as
> > >> > long as Structure was in the working directory:
>
> > >> > Clojure
> > >> > user=> (use 'Structure)
> > >> > nil
>
> > >> > However, after I updated to 20090320, I get the following errors:
>
> > >> > Clojure
> > >> > user=> (use 'Structure)
> > >> > java.io.FileNotFoundException: Could not locate Structure__init.class
> > >> > or Structure.clj on classpath:  (NO_SOURCE_FILE:0)
>
> > >> > In both cases, I'm launching Clojure from the directory that contains
> > >> > Structure.clj as follows:
>
> > >> > java clojure.lang.Repl
>
> > >> > What am I doing wrong?
>
> > >> Does Structure.clj contain a call to the ns macro? If so, I think you
> > >> need to move Structure.clj to a subdirectory that matches its
> > >> namespace. For example, if the namespace is a.b.c then you need a
> > >> directory in the classpath that contains an "a" directory that
> > >> contains a "b" directory that conains "c.clj", not "Structure.clj".
>
> > --
> > R. Mark Volkmann
> > Object Computing, Inc.
--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to