here is an example of a properly configured project to compare with:
project.clj:
(defproject math-example "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/math.numeric-tower "0.0.2"]])
src/math_example/core.clj:
(ns math-example.core
(:require [clojure.math.numeric-tower :as math]))
(def x (math/expt 2 10))
repl:
math-example.core> (math/expt 2 10)
1024
math-example.core> x
1024
math-example.core>
Using most clojure libraries should, in general, be no harder than adding the dependency and adding a :require
tag to a namespace (or a :use
tag if you prefer).