Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, put the code in a file named hello_world/core.clj
and use the clojure
command.
Sometimes we’ll want to build our programs into binaries. In Clojure, this usually means using a tool like Leiningen to create an uberjar, a standalone JAR file.
First, initialize a Leiningen project:
Then, place the code inside src/hello_world/core.clj
and build the uberjar:
We can then execute the JAR file directly using the java -jar
command.
Now that we can run and build basic Clojure programs, let’s learn more about the language.