Hi! Thanks, i think i haven't executed java from command line for a while
and forgot some things. ;-)

On Mon, Feb 15, 2010 at 11:32 AM, Meikel Brandmeyer <m...@kotka.de> wrote:

> Hi,
>
> On Feb 15, 6:13 am, Paulo Sérgio Medeiros <pase...@gmail.com> wrote:
>
> > I think i've not figured out yet how compile and/or namespace works.
> >
> > I'm trying to execute the example posted inhttp://
> clojure.org/compilation
> >
> > I've created a file named "hello.clj" and put the clojure.jar in the same
> > directory (c:\clojure_tests).
> >
> > Then, i started the REPL using the command: java -cp clojure.jar
> > clojure.main
> >
> > And executed (compile 'clojure.examples.hello), but i'm getting the
> > following error:
> >
> > java.io.FileNotFoundException: Could not locate
> > clojure/examples/hello__init.class or clojure/examples/hello.clj on
> > classpath:  (NO_SOURCE_FILE:0)
> >
> > If i execute compile with a different namespace like (compile 'hello)
> then i
> > get the following error:
> >
> > java.io.IOException: The system cannot find the path specified
> (hello.clj:1)
> >
> > Is there any relationship between the namespace name and the file name?
> How
> > compile determines which file is going to be compiled?
>
> From http://clojure.org/compilation:
>
>   For some namespace my.domain.lib, defined in my/domain/lib.clj, in
> the classpath, ...
>
> So put your file in src/clojure/examples/hello.clj. Create also a
> directory called classes. Then invoke clojure with
>
>    java -cp src;classes;clojure.jar clojure.main -r
>
> and compile the namespace as you did before. The compiled classes will
> end up in the classes directory.
>
> 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<clojure%2bunsubscr...@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