user1995302
user1995302

Reputation: 11

Clojure compilation

I have a problem with clojure compilation: when i used the "(compile app.clj)" function in the cmd.exe(executed in the main folder of clojure) on windows and in the terminal(in the home directory, clojure installed from ubuntu software center) in linux- clojure throw the classnotfoundexception and doesn't found the source when it was ready with the required settings. Please, somebody help me for setup the compilation. Thanks!

Upvotes: 1

Views: 217

Answers (1)

kasz
kasz

Reputation: 21

First of all, you are not using compile function properly. Documentation clearly states that parameter must be a namespace symbol. I do not know namespace of app.clj, but it should look like my-project.app. Therefore correct call would be something like:

(compile 'my-project.app)

There might also be other problems (like not defining proper classpath), but they can be easily resolved using Leiningen. If you are not using it already, you definitely should.

Upvotes: 2

Related Questions