You probably need to set (and create!) the correct compilation (output) directory. This defaults to a "classes" directory as a subdirectory of your current working directory. So if you had:
test/main.clj you'd need classes/<class files will appear here> also make sure that this directory is on your classpath. I think this is what I needed to do to get everything working. -- Chris On Fri, May 22, 2009 at 10:34 AM, tsuraan <tsur...@gmail.com> wrote: > > I'm having some trouble getting clojure to generate .class files. I > have a directory layout like this: > > test/ > main.clj > > where main.clj is the same file as from > http://clojure.org/compilation, but with the 'clojure.examples.hello > replaced with 'test.main . I've tried running clojure a few different > ways: > > from the parent dir of the test dir, as java -cp > ~/src/clojure/clojure.jar:`pwd`/ clojure.main > from within the test dir, as java -cp ~/src/clojure/clojure.jar:`pwd`/.. > > In both cases, I can successfully (use 'test.main) and call (-main > "foo"), and it works, but when I try to call (compile 'test.main) I > get java.io.IOException: No such file or directory (main.clj:1). What > do I need to do to get compilation to work? > > > > -- Chris Wilson <christopher.j.wil...@gmail.com> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---