I also had lots of problems getting compilation to work. I think
perhaps Clojure is making some assumptions about where your working
directory is located relative to your clojure.jar and classpath, and
if you have a different directory structure, things fail. For me, the
solution was to explicit
> 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:
And this worked! Now that I'm looking for the *compile-path*
variable, I see that it's mentioned in
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/
also make sure that this directory is on your classpath. I think this
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 dif