Running a simple clojure file after compile

Hello. I installed the La Clojure plugin in Intellij IDEA 12.1.6. I created a simple hello world clojure file:

(ns (:gen-class))
(defn -main [args]
(println "Hello World!"))

I can right click on the file and compile it successfully (choosing Compile 'hello.clj'), but I cannot right click on the same file and run it afterwards, as I receive:

Clojure Compiler: The system cannot find the path specified, compiling: <my local path to hello.clj>

Now, I had also clicked on the project itself inside the IDE, and then went to Tools => Start Clojure Console

When I did that, it looks like the paths seem to be loaded/set inside the console to point to my project directory. But then tried to do the following inside the console:

clojure.main /foo/bar/hello.clj

but I receive:

RuntimeException Invalid token: /foo/bar/hello.clj  clojure.lang.Util.runtimeException (

How do I run the clojure file from the Intellij IDE after compiling it?

Thank you in advance for any insight.


Please sign in to leave a comment.