Hmm, I tried your dirs and files off my dev directory and the same
binding/compile form and it works fine or me - firstly on 1121, but then I
checked out 1130 and also no problem. (I'm on jdk 1.5 on OSX). Sure you've
created the classes dir?

Also you said you invoked using;
java -cp /home/gteale/src/aot_test/classes:/home/gteale/src/aot_test/src/
-jar /home/gteale/src/clojure/clojure.jar
I used;
java -server -cp
./classes:./src/:/Users/adrian/Downloads/Clojure/clojure_1130/clojure.jar
clojure.lang.Repl
(i.e I compiled from the Repl)

Rgds, Adrian.

On Sun, Nov 30, 2008 at 9:50 AM, Geoffrey Teale <[EMAIL PROTECTED]>wrote:

> Morning all,
>
> I've been busy with other things for a couple of weeks, so I haven't been
> tracking the development of AOT.   This weekend though I have had the
> opportunity to try it, but I am having a nightmare to get it to work at all.
>   I've hunted through this group, read the sparkly new documentation on the
> website, and still no joy.
>
> Here's the current state of what I am doing:
>
> I am using revision 1130 from SVN (though I have tried various versions
> post AOT and I strongly believe that it is me that is fault, not the
> revision).
>
> I have a directory structure that looks like this:
>
> /home/gteale/src/aot_test
> /home/gteale/src/aot_test/classes
> /home/gteale/src/aot_test/src
> /home/gteale/src/aot_test/src/de/teale/test.clj
>
> The contents of test.clj as derived from the compile docs, and look like
> this:
>
> ;; test.clj
> (ns de.teale.test
>     (:gen-class))
>
>
> (defn -main
>   [greetee]
>   (println (str "Hello " greetee "!")))
>
> ;; end test.clj
>
>
> I invoke clojure like this:
>
> java -cp /home/gteale/src/aot_test/classes:/home/gteale/src/aot_test/src/
> -jar /home/gteale/src/clojure/clojure.jar
>
> And evaluate the following form:
>
> (binding [*compile-path* "/home/gteale/src/aot_test/classes"]
>          (compile 'de.teale.test))
>
> This (and every other way I have tried) always ends up with the same
> message:
>
> java.io.FileNotFoundException: Could not locate de/teale/test__init.class
> or de/teale/test.clj on classpath:  (compile.clj:0)
>     at clojure.lang.Compiler.eval(Compiler.java:4120)
>     at clojure.lang.Compiler.load(Compiler.java:4436)
>     at clojure.lang.Compiler.loadFile(Compiler.java:4403)
>     at clojure.main$load_script__5024.invoke(main.clj:117)
>     at clojure.main$script_opt__5056.invoke(main.clj:163)
>     at clojure.main$_main__5069.doInvoke(main.clj:227)
>     at clojure.lang.RestFn.applyTo(RestFn.java:142)
>     at clojure.main.main(Unknown Source)
> Caused by: java.io.FileNotFoundException: Could not locate
> de/teale/test__init.class or de/teale/test.clj on classpath:
>     at clojure.lang.RT.load(RT.java:408)
>     at clojure.lang.RT.load(RT.java:375)
>     at clojure.core$load__4450$fn__4452.invoke(core.clj:3359)
>     at clojure.core$load__4450.doInvoke(core.clj:3358)
>     at clojure.lang.RestFn.invoke(RestFn.java:413)
>     at clojure.core$load_one__4413.invoke(core.clj:3204)
>     at clojure.core$compile__4456$fn__4458.invoke(core.clj:3369)
>     at clojure.core$compile__4456.invoke(core.clj:3368)
>     at user$eval__2.invoke(compile.clj:2)
>     at clojure.lang.Compiler.eval(Compiler.java:4109)
>     ... 7 more
>
> What am I doing wrong?
>
> --
> Geoffrey Teale
> Freelance Software and Technology Consultant
> Munich, Germany
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to