Clojure REPL on Windows

I would like to learn Clojure, but instead of opening a fully functional IDE every time I would like to have a batch file (or similar) that opens up a decent REPL to quickly crack examples, (i.e. I'm not looking for a discussion of Emacs / Netbeans / Eclipse IDE).

For example, this launches the most basic REPL:

cd C:\Program Files\Java\clojure-1.2.0\ java -cp clojure.jar clojure.main 

and if you add the jline and clojure -contrib jar files to the clojure directory then

 cd C:\Program Files\Java\clojure-1.2.0\ java -cp .;jline-0_9_5.jar;clojure.jar;clojure.contrib.jar jline.ConsoleRunner clojure.main 
+4
source share
2 answers

For a stand-alone replacement with decent classpath management take a look at cljr:

https://github.com/liebke/cljr

This provides a cljr.bat script that works very well under windows and provides convenient control over what is in the classpath and the ability to package / install clojure packages.

+3
source

Look leiningen . From there, download the zip windows, put the lein directory in your PATH and run:

 lein repl 

Enjoy it!

+10
source

Source: https://habr.com/ru/post/1340010/


All Articles