Hi,

I think I know what is going on.
You are using the Clojure 1.0, but you should use the latest Clojure,
because there are depoendencies.

This is what you need to do:
   1. remove Clojure 1.0
   2. get latest Clojure with git
   3. get latest Clojure-Contrib with git
   4. build Clojure using Ant
   5. build clojure-contrib using ant with the option
-Dclojure.jar=../clojure/clojure.jar
       (this is correct when both clojure and clojure-contrib are child
directories of the same parent;
        otherwise specify your clojure.jar location)
That should fix your problem!

Regards
   Arie

2009/8/13 Barry Perryman <barry.perry...@gmail.com>

>
> I'm new to clojure and I haven't touched the java platform for longer
> than I can remember, and I'm having a little difficulty building
> clojure-contrib.
>
> I've made a software/clojure folder, and installed clojure 1.0
> release. Under that folder I have made a clojure-contrib folder, and
> got the latest code off github, and put it there.
>
> When I try and build I get an error about walk.clj/walk__init.class
> not being in the class path.
>
> I've pasted what my mac system reports at the end, does anybody know
> what I'm doing wrong?
>
> Thanks
>
> Barry
>
>   $ java -version
>   java version "1.5.0_19"
>   Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-
> b02-304)
>   Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode,
> sharing)
>
>   $ ant -version
>   Apache Ant version 1.7.0 compiled on May 21 2009
>
>   $ ant
>   Buildfile: build.xml
>
>   init:
>
>   check_hasclojure:
>     [echo] WARNING: You have not defined a path to clojure.jar so I
> can't compile files.
>     [echo]       This will cause some parts of clojure.contrib not to
> work (e.g., pretty print).
>     [echo]       To enable compiling, run "ant -Dclojure.jar=<...path
> to clojure.jar..>"
>     [echo]
>
>     compile_clojure:
>
>     jar:
>
>     BUILD SUCCESSFUL
>     Total time: 0 seconds
>
>
>   $ ant -Dclojure.jar=../clojure-1.0.0.jar
>   Buildfile: build.xml
>
>   init:
>
>   check_hasclojure:
>
>   compile_clojure:
>     [java] Compiling clojure.contrib.accumulators to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.agent-utils to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.classpath to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.combinatorics to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.command-line to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.complex-numbers to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.cond to /Users/barry/software/
> clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.condition to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.core to /Users/barry/software/
> clojure/clojure-contrib/classes
>     [java] Compiling clojure.contrib.dataflow to /Users/barry/
> software/clojure/clojure-contrib/classes
>     [java] java.io.FileNotFoundException: Could not locate clojure/
> walk__init.class or clojure/walk.clj on classpath:  (dataflow.clj:17)
>
>   Long stack trace removed...
>
> >
>

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