title: Steps in using a java third party library from clojure
body: <p>I am very close to being able to do this. I chose <a href="https://github.com/JDatePicker/JDatePicker" rel="nofollow">JDatePicker</a> to see what it takes. Steps:</p>
  
  <pre><code>1) git clone https://github.com/JDatePicker/JDatePicker
  2) cd JDatePicker
  3) mvn package
  </code></pre>
  
  <p>Then installed <a href="https://github.com/kumarshantanu/lein-localrepo" rel="nofollow">localrepo</a> Don't know if there is an easier way but this seems to be the way pointed to by others on the internet.</p>
  
  <pre><code>4) vi  ~/.lein/profiles.clj
  5) {:user {:plugins [[lein-localrepo "0.5.3"]]}}
  </code></pre>
  
  <p>Inside JDatePicker directory where the .jar file is located, used localrepo to give jdatepicker a coordinate so that lein projects can use it. I am using lein version:</p>
  
  <pre><code>idf@idf-Satellite-C55t-A ~/Documents/clojure/jdatepickertest $ lein version
  Leiningen 2.5.0 on Java 1.7.0_72 Java HotSpot(TM) 64-Bit Server VM
  idf@idf-Satellite-C55t-A ~/Documents/clojure/jdatepickertest $ 
  
  6) lein localrepo install jdatepicker-2.0.0-SNAPSHOT.jar org/jdatepicker 2.0.0
  </code></pre>
  
  <p>Created a new clojure project to see if I can access it </p>
  
  <pre><code>7) lein new jdatepickertest
  8) cd jdatepickertest
  </code></pre>
  
  <p>modified the project.clj file and added [org/jdatepicker     "2.0.0"] to the dependencies section</p>
  
  <pre><code>9)    
   (defproject jdatepickertest "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.6.0"]
                   [org/jdatepicker     "2.0.0"]
           ] )
  </code></pre>
  
  <p>did a lein deps which returned nothing so assumed all went well</p>
  
  <pre><code>10) lein deps
  </code></pre>
  
  <p>launched a repl inside jdatepickertest directory</p>
  
  <pre><code>11) lein repl
  </code></pre>
  
  <p><strong><em>Now I try to use jdatepicker from clojure but I can't seem to access it?</em></strong></p>
  
  <pre><code>12) 
  nREPL server started on port 43286 on host 127.0.0.1 - nrepl://127.0.0.1:43286
  REPL-y 0.3.5, nREPL 0.2.6
  Clojure 1.6.0
  Java HotSpot(TM) 64-Bit Server VM 1.7.0_72-b14
      Docs: (doc function-name-here)
            (find-doc "part-of-name-here")
    Source: (source function-name-here)
   Javadoc: (javadoc java-object-or-class-here)
      Exit: Control+D or (exit) or (quit)
   Results: Stored in vars *1, *2, *3, an exception in *e
  user=&gt; (clojure-version)
  "1.6.0"
  user=&gt; (require '[jdatepicker :as datepicker])
  FileNotFoundException Could not locate jdatepicker__init.class or jdatepicker.clj on classpath:   clojure.lang.RT.load (RT.java:443)
  user=&gt; (require '[org.jdatepicker :as datepicker])
  
  FileNotFoundException Could not locate org/jdatepicker__init.class or org/jdatepicker.clj on classpath:   clojure.lang.RT.load (RT.java:443)
  user=&gt; 
  </code></pre>