Compiling Clojure?
Got it, there's a fourth requirement:
- *compile-path* is resolved relative to the JVMs working directory, normally the directory where java is started. Or by REPL:
(System/getProperty "user.dir")
,
So this works:
user=> (set! *compile-path* "build/classes")
"build/classes"
user=> (compile 'test.hello)
test.hello
Why you don't use Leiningen? It's much easier to use it, than compile code manually. You can use my article about it as introduction...