Thank you, Carlo! That was it! I'm using Leingingen 2. It's working great 
now.

Dave

On Saturday, June 16, 2012 8:34:08 PM UTC-5, Carlo wrote:
>
> On Sat, Jun 16, 2012 at 10:10 AM, Dave Kincaid <kincaid.d...@gmail.com> 
> wrote: 
> > Sure can. Here is the project.clj: 
> > 
> > (defproject swank-test "0.1" 
> >   :source-path "src/main/clj" 
>
> Are you using lein 1.x or lein 2.x? In lein 2.x you need to use 
> `:source-paths ["src/main/clj"]` here. 
>
> >   :test-path "test/clj" 
> >   :java-source-path "src/main/java" 
>
> The same goes for :test-paths and :java-source-paths. The leiningen 
> girhub repository has a sample project.clj which is where I looked 
> this up (in case you need to look something else up later). 
>
> https://github.com/technomancy/leiningen/blob/master/sample.project.clj 
>
> >   :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] 
>
> When I do this with your supplied project.clj with lein 1.x it works. 
> With lein2.x and the changes outlined above it also works. 
>

-- 
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

Reply via email to