Installing Leiningen on Windows
Leiningen is an awesome tool for getting up and running with Clojure. They have a super simple bash or .bat script for getting up and running on OS X, Linux, and Windows. The home page does an awesome job explaining how to get started with OS X and Linux but not so much on Windows.
This is a very similar process to what I wrote about previously on Setting up ANTLR4 on Windows. If you do not already, make sure that you have Java Installed (the latest version should work fine).
Create Batch Command for lein
Download lein.bat and save it somewhere. I put all of my random Java libraries inC:\Javalib to make them easy to find. So that is where I put this bat script.Add C:\Javalib to your PATH
- Open up File Explorer
- Right Click on This PC
- Select Properties
- On the left hand side of the new window select Advanced System Settings
- On the bottom of this screen select Environment Variables…
- Find the PATH variable
- Append
;C\Javalib\;to the existing PATH variable
Install and Test to make sure everything works
- Open up a command prompt and type in
lein self-install. This will install lein. - Now you can type
lein replto start a REPL session
user=> (+ 2 2)
;= 4
user=> (printf "Clojure on Windows is Awesome!")
;= Clojure on Windows is Awesome!nil
If nothing is bombing out, you are all set and ready to hack on some Clojure! Why not check out the CircleCI frontend for inspiration?Thank you for reading! Share your thoughts with me on bluesky, mastodon, or via email.
Check out some more stuff to read down below.
Most popular posts this month
- Lev Lazinskiy
- Lev Lazinskiy
- Lev Lazinskiy
- SQLite DB Migrations with PRAGMA user_version
- Terminal RSS Reader With Nom
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- No-One Escapes the Permanent Underclass from Fernando Borretti
- Make AI Boring Again from charity.wtf
- The logical destination of LLMs from Andy Bell
- Revised rules of engineering leadership. from Irrational Exuberance
- The circus freaks of open source from Drew DeVault's blog
- Clanker: A Word For The Machine from Armin Ronacher's Thoughts and Writings
- I ran a half-marathon! from gluecko.se
- My Running Tips from Kevin Bell's Blog
Articles from blogs I follow around the net
Om Malik 1966-2026
(Note: This is a special edition of The Torment Nexus, dedicated to my friend Om Malik, who passed away due to congestive heart failure at the age of 59. I wrote this on my blog, but I thought some people who subscribe might also be interested. If you aren...
via The Torment Nexus June 27, 2026Pluralistic: Zuckerberg's increasingly bizarre war on whistleblowers (27 Jun 2026)
Today's links Zuckerberg's increasingly bizarre war on whistleblowers: Under no circumstances should you rush out and read the book that prompted Mark Zuckerberg to demand $111m and eternal auctorial silence. Hey look at this: Delights to delectate. Object...
via Pluralistic: Daily links from Cory Doctorow June 27, 2026I'm in bed, I have the windows wide open, and the fan on full blast, and I'm actually starting to feel cold. I'm very glad we're finally reaching the end of this heatwave.
via Chris Hannah June 27, 2026Generated by openring