You need to include individual jars in your eclipse project dependencies if you want to benefit from the integrated REPL of the ccw eclipse plugin.
The next ccw major release will have leiningen and eclipse project class path synchronization using the dependencies listed in your project.clj file if it exists. Meanwhile, synch your project depencencies with lein's dependencies manually. When you create a clojure project using ccw, it will put in it the clojure 1.2 and the monolithic contrib in the project itself and on its classpath. Just remove them from the project classpath and folder, update your project.clj to add the necessary dependencies, run lein deps at the root of the project then update your eclipse project classpath from the lib folder by selecting all the jar files there. Of course if you change dependencies, you will have to resynch them in your eclipse project classpath but in does not occur often in a project lifetime. Sinçe eclipse will complain if a jar file is missing, it's easy to spot the moment when it will get out of synch. Luc > Using eclipse to edit files is OK but *don't use it manage your > dependencies in Clojure.* > > You should use leiningen to manage additions to your project. After > starting a project with > lein new projectName > you can edit the project.clj file in the folder that is created. > > You'll see something like this > (defproject projectName "1.0.0-SNAPSHOT" > :description "FIXME: write description" > :dependencies [[org.clojure/clojure "1.2.1"]]) > > To add libraries to the project, add values to the vector under > dependencies such that each new library is in [] brackets and has > [library-name "version"] > > So for instance, to add debug-repl > (defproject projectName "1.0.0-SNAPSHOT" > :description "FIXME: write description" > :dependencies [[org.clojure/clojure "1.2.1"] > [org.clojars.gjahad/debug-repl "0.3.1"] ; > library-name in this case is org.clojars.gjahad/debug-repl & version is > "0.3.1" > ]) > > To change it to clojure 1.3.0, change the version next to > org.clojure/clojure to 1.3.0 > (defproject projectName "1.0.0-SNAPSHOT" > :description "FIXME: write description" > :dependencies [[org.clojure/clojure "1.3.0"]]) > > After changing org.clojure/clojure to 1.3.0, the rules are the same for > adding dependencies. > > > Clojure 1.3 doesn't actually use the contributions library anymore. Each > contribution is now in it's own library. > You can read this for info on what to include for different libraries. > http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go > > On Wed, Feb 29, 2012 at 6:53 PM, Lawrence <ld...@savant-is.com> wrote: > > > Hello, > > > > I have clojure 1.2 and eclipse, with contrib, running together, but I > > don't understand how clojure 1.3 and eclipse integrate with the > > contributions. It seems like it's simplily a matter of getting a > > contrib from github and what? running it through lein and using the > > jar file? adding the source to the project source? > > > > Normally with a java project I would just compile the library and add > > it to the eclipse class path, but that does not seem to work. > > > > Can anyone point me to an explanation on how to add a contrib to a > > project when using eclipse? > > > > thanks, Lawrence > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > 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 post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en