Thanks for all the responses. This was a success.

On Jun 15, 3:02 pm, octopusgrabbus <octopusgrab...@gmail.com> wrote:
> Thanks for the response. I eventually found that as well.
>
> (ns test-csv
>   (:gen-class)
>   (:import (java.io BufferedReader FileReader))
>   (:use clojure-csv.core))
>
> (defn process-file [file-name]
>   (with-open [br (BufferedReader. (FileReader. file-name))]
>                         (parse-csv (line-seq br))))
>
> (defn -main [& args]
>   (process-file "resultset.csv"))
>
> On Jun 15, 2:08 pm, Mark Rathwell <mark.rathw...@gmail.com> wrote:
>
>
>
>
>
>
>
> > See Ken's post, there is a paren out of place in test_csv.clj.
>
> > On Wed, Jun 15, 2011 at 2:02 PM, octopusgrabbus 
> > <octopusgrab...@gmail.com>wrote:
>
> > > Yes, I did all that.
>
> > > On Jun 15, 2:01 pm, Mark Rathwell <mark.rathw...@gmail.com> wrote:
> > > > Did you run the command to re-pull the dependencies, then rebuild your
> > > jar?
> > > >  (I'm assuming it is something like 'cake deps')
>
> > > > On Wed, Jun 15, 2011 at 1:58 PM, octopusgrabbus <
> > > octopusgrab...@gmail.com>wrote:
>
> > > > > 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
>
> > > --
> > > 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