On the Clojure Getting Started page, it shows to start the REPL like this:
java -cp clojure-1.5.1.jar clojure.main
The first argument is a file, which can also be specified via the environment variable CLASSPATH
. But what is clojure.main
?
It is the main class of the JAR file: org.clojure/clojure/1.5.1/META-INF/maven/org.clojure/ clojure/pom.xml
<archive>
<manifest>
<mainClass>clojure.main</mainClass>
</manifest>
</archive>
For more info : Setting an Application's Entry Point