More Clojure On Windows

I’m slowly working my way through Stuart Holloway’s Programming Clojure book (and using slowly in that phrase does a terrible disservice to the word) and so far, I’m enjoying it. I had a run at Common Lisp a couple of years ago and ran into a brick wall for the most part (I think football season started). I’m mostly playing with Clojure to get a different perspective on programming apart from my usual day job as a .Net developer.

All that intro aside, I wrote about both starting and stopping the REPL here. In working through the book, you need to have the clojure install directory, the clojure-contrib directory and the code from the book on your CLASSPATH. Instead of modifying that in the environment variables on Windows, it’s a great deal easier (and smarter according to IBM to just modify the CLASSPATH at startup using the command line. This is extra easy if you created the clojure.bat file I wrote about in my previous entry linked above. You can just change the one line in it to “java -cp path_to_clojure\clojure.jar;path_to_clojurecontrib\clojure-contrib.jar;path_to_book_code clojure.lang.Repl”. Once you’ve done that, you’re up and running with the book samples.

Being both a Java dummy and a Clojure dummy, I’ll try to keep posting tips from my foray here.

0 comments on “More Clojure On Windows

  1. IMHO, you hafta have the right kind of head for Lisp to help you. More power to those who are like that, but most programmers don’t.

  2. IMHO, you hafta have the right kind of head for Lisp to help you. More power to those who are like that, but most programmers don’t.

  3. I hope that isn’t true, at least not in my case. I played around with Common Lisp a little and never had the A-ha moment but I didn’t really study it seriously. I have the feeling that it takes more work than most people are willing to put in (myself included) but I’m really enjoying Clojure so far so we’ll see. It hasn’t happened in the two chapters of the book so maybe it will be in chapter 3. 🙂

  4. I hope that isn’t true, at least not in my case. I played around with Common Lisp a little and never had the A-ha moment but I didn’t really study it seriously. I have the feeling that it takes more work than most people are willing to put in (myself included) but I’m really enjoying Clojure so far so we’ll see. It hasn’t happened in the two chapters of the book so maybe it will be in chapter 3. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *