Setting Up Incanter and MySQL
Okay, Lein really does make stuff pretty easy. Rather than wrestling with eleventybillion classpaths, just install Lein.
Create a new project directory withlein new mydirectory
Change the project.clj file that is autogenerated with:
(defproject mydirectory "1.0.0-SNAPSHOT" :description "FIXME: write" :dependencies [[org.clojure/clojure "1.1.0-alpha-SNAPSHOT"] [org.clojure/clojure-contrib "1.0-SNAPSHOT"] [mysql/mysql-connector-java "5.1.6"] [incanter/incanter "1.0-master-SNAPSHOT"]])
(that is, add the mysql and incanter dependencies).
Download all the dependencies with lein deps
Start up a REPL with everything in the classpath by just using lein repl
Wow, that’s kind of nice.