0
votes

I'm currently attempting to work through "Clojure for the Brave and True" (in particular, trying to set it up) and I'm running into some trouble. I'm on Windows 10 so I installed Leiningen according to the instructions on the website, but the lein commands only work on the Desktop where I installed it, not in the actual project folder which is located on the desktop (navigating to the actual folder does not let me run it; using lein run on the Desktop simply results in the error "No :main namespace specified in project.clj."

Have I done something wrong in installing leiningen?

1
I find working on Windows is easiest if you first install Git Bash and then work in that environment: git-scm.com/download/win You may then clone this template project and edit the test file to get started: github.com/io-tupelo/clj-templateAlan Thompson

1 Answers

1
votes

You will need to edit your Path environment variable to add the folder where you installed the lein.bat file, or you could just provide the full path to that file instead of just lein when you're working in a different folder.

I would recommend creating a folder on your C: drive to put lein.bat in, and adding that folder to Path instead of desktop. I typically used to have C:\lein\ with lein.bat in that folder.