# Setup Clojure on Windows (WSL) or Linux

By: Michael Rispoli
Published: 2021-10-14

I found there to be very little information on how to set things up easily on Windows and having just started using Windows I don't know much about the packages and powershell so it felt nice and easy to do this with Linux. Hope I saved someone, even if its my future self, some setup time.

# Setup Clojure on Windows (WSL) or Linux

So I've been working through this book "[Clojure for the Brave and True](https://www.braveclojure.com/ "Clojure for the Brave and True")" and I got a bit stuck trying to do setup for Windows. So here's what I did.

1. Use WSL.
2. Install Java in the terminal with: `sudo apt install openjdk-11-jdk`
3. Install leiningen with apt-get: `sudo apt-get install leiningen`

Boom, that's it and you're off the the races. You can use emacs like the book recommends but I just use VS Code (because it integrates easily with WSL) and [this extension](https://github.com/avli/clojureVSCode "this extension"). REPL works great and you're off and learning with little fuss.

I found there to be very little information on how to set things up easily on Windows and having just started using Windows I don't know much about the packages and powershell so it felt nice and easy to do this with Linux. Hope I saved someone, even if its my future self, some setup time.

Canonical URL: https://www.causeofakind.com/blog/setup-clojure-on-windows-wsl-or-linux