Have you tried visiting the project.clj file in Emacs and then doing M-x clojure-jack-in ? That should start lein swank in the project directory and pull in all the dependencies as expected.
(you should start lein swank in the project root directory - containing project.clj - not in a subdirectory) On Fri, Jun 15, 2012 at 5:10 PM, Dave Kincaid <kincaid.d...@gmail.com> wrote: > Sure can. Here is the project.clj: > > (defproject swank-test "0.1" > :source-path "src/main/clj" > :test-path "test/clj" > :java-source-path "src/main/java" > :javac-options {:debug "true" :fork "true"} > :resources-path "src/main/resources" > :dependencies [[org.clojure/clojure "1.4.0"] > [cascalog "1.9.0"] > [org.apache.hadoop/hadoop-core "0.20.2" :exclusions > [hsqldb/hsqldb]]]) > > I have a file named generator.clj in src/main/clj. When I do a "lein swank" > from the directory that project.clj is in then run slime-connect in Emacs > with the generator.clj file open. Then I try to do (use 'generator) and get > > Could not locate generator__init.class or generator.clj on classpath: > [Thrown class java.io.FileNotFoundException] > > > what am I doing wrong? -- 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