On Fri, Apr 26, 2013 at 5:04 PM, jayvandal <[email protected]> wrote:
> I have this code.
> (defproject jsql "1.0.0-SNAPSHOT"
> :description "FIXME: write"
> :dependencies [[org.clojure/clojure "1.4.0"]])
That would be your project.clj file, in a Leiningen-created project folder.
When you run:
lein repl
Leiningen will download the dependencies and start a REPL for you to use.
> (use 'clojure.java.jdbc)
This will not work unless your dependencies include the java.jdbc
library, like this:
:dependencies [[org.clojure/clojure "1.4.0"]
[org.clojure/java.jdbc "0.2.3"]]
That will tell Leiningen to fetch Clojure 1.4.0 and java.jdbc 0.2.3
(and put them in your local ~/.m2/ Maven repository cache. When
Leiningen starts the REPL - or runs a program - it sets up the
classpath for the JVM to include all of the necessary JARs from the
cache.
> My question is where do the dependencies locate? I would put the files in
> the c:\clojure-1.4.0
You don't need to install Clojure when you use Leiningen.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.