I'm getting a new error:]

  [compile] Compiling namespace test-csv
error evaluating:
((compile-stale source-path compile-path))
java.lang.RuntimeException:
java.lang.ClassNotFoundException: :use.clojure-csv (test_csv.clj:1)

Here's the modified project.clj
--------------------------------------------
defproject test-csv "0.1"
   :dependencies [[org.clojure/clojure "1.2.1"]
                  [org.clojure/clojure-contrib "1.2.0"]
                  [clojure-csv/clojure-csv "1.2.4"]]
   :main test-csv)

Here's the modified test_csv.clj
----------------------------------------------
(ns test-csv
  (:import (java.io BufferedReader FileReader)
  (:use clojure-csv)))

(defn -main [& args]
  (println "Hello world!"))

I took the    [clojure-csv/clojure-csv "1.2.4"] for project.clj right
from clojure-csv's README.md.

On Jun 15, 1:37 pm, Mark Rathwell <mark.rathw...@gmail.com> wrote:
> It is standard to name your filenames with underscores, but your clojure
> names with dashes (so 'ns test_csv' should be 'ns test-csv').  Also update
> that in your project.clj :main key.  That may or may not be the cause of the
> problem here.
>
> On Wed, Jun 15, 2011 at 1:19 PM, octopusgrabbus 
> <octopusgrab...@gmail.com>wrote:
>
>
>
>
>
>
>
> > I am getting this error and cannot find out what I've done wrong. Any
> > pointers would be very appreciated.
>
> > Exception in thread "main" java.lang.NoClassDefFoundError: test_csv
>
> > I have built the project in test_csv successfully using cake.
>
> > project.clj
> > --------------
> > (defproject test_csv "0.1"
> >   :dependencies [[org.clojure/clojure "1.2.1"]
> >                  [org.clojure/clojure-contrib "1.2.0"]
> >                  [clojure-csv/clojure-csv "1.2.4"]]
> >   :main test_csv)
>
> > test_csv.clj
> > -----------------
> > (ns test_csv
> >  (:import (java.io BufferedReader FileReader)
> >  (:use clojure-csv.core))
>
> > (defn -main [& args]
> >  (println "Hello world!"))
>
> > --
> > 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

Reply via email to