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 repl
to 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
- 2024
- Reinstalling Windows at 1am
- SQLite DB Migrations with PRAGMA user_version
- My Custom Miniflux CSS Theme
- How to Disable Wayland in Debian Testing
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- Future Fonts from Blog – Brad Frost
- 21st Century C++ from Communications of the ACM
- Submarines DevCon 2025 Keynote Speech from JoshHaines.com
- How I Use AI: Meet My Promptly Hired Model Intern from Armin Ronacher's Thoughts and Writings
- DeepSeek from Maggie Appleton
- Digital Reality Digital Shock from Christopher Butler
- 10 habits to help becoming a Debian Maintainer from Optimized by Otto
- Tiny corners from Manuel Moreale RSS Feed
Articles from blogs I follow around the net
Weekend Update #12
The weekly update, plus bits and bobs that caught my attention this week.
via ODonnellWeb March 30, 2025"An off switch? She'll get years for that."
Vizio: "Please enjoy falling asleep to these calming nature scenes, occasionally punctuated with unhinged fascist rants. As a treat." I left the tv idle while I went to the other room to play with my dog. After about a half an hour, I started heari…
via jwz March 29, 2025Generated by openring