Skip to content

Instantly share code, notes, and snippets.

@stuartwakefield
Last active December 13, 2015 17:28
Show Gist options
  • Save stuartwakefield/4948017 to your computer and use it in GitHub Desktop.
Save stuartwakefield/4948017 to your computer and use it in GitHub Desktop.
Just the batch file I use to run clojure nicely on my Windows command line
:: Installation
:: ------------
::
:: 1. Add this to your Clojure directory.
:: 2. Add that directory to your Windows PATH
:: 3. Change the version number in the Batch file if need be.
::
:: Then you can run clojure from the Windows command line just by typing:
::
:: clojure [args]
::
:: To start the REPL:
::
:: clojure
::
:: To run a clojure script file:
::
:: clojure my-file.clj
::
@echo off
:: The directory containing this batch file
set DIRPATH=%~dp0
:: Change the version if you need to
set VERSION=1.4.0
:: Java must also be on the PATH
call java -jar %DIRPATH%clojure-%VERSION%.jar %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment