Re: A problem with compilation Clojure files

2009-09-15 Thread Richard Newman
> Although I still don't understand why the current working directory > can cause such problems (shouldn't Java be able to make proper use of > the classpath?), my problem has been solved. Because the compilation of Clojure files produces files in *compile- path* ("classes" by default), which is

Re: A problem with compilation Clojure files

2009-09-15 Thread TPJ
On 14 Wrz, 20:06, Richard Newman wrote: > > Nope, it's not that easy. I changed "clojure.example.hello" to > > "clojure.examples.hello" in the hello.clj file, and the message was > > still the same. (Hard to believe, isn't it?) > > What's the value of *compile-path*? Is it in your classpath? In

Re: A problem with compilation Clojure files

2009-09-15 Thread TPJ
On 14 Wrz, 19:51, Michael Wood wrote: > (...) > What does your "runclojure" script look like? Yes, that's the point. If the problem isn't in the Clojure itself, nor in the source file, and the files are placed exactly where they should be, the only possibility is the script used to run Clojure.

Re: A problem with compilation Clojure files

2009-09-14 Thread Richard Newman
> Nope, it's not that easy. I changed "clojure.example.hello" to > "clojure.examples.hello" in the hello.clj file, and the message was > still the same. (Hard to believe, isn't it?) What's the value of *compile-path*? Is it in your classpath? --~--~-~--~~~---~--~

Re: A problem with compilation Clojure files

2009-09-14 Thread Michael Wood
2009/9/14 TPJ : > > On 14 Wrz, 06:01, Richard Newman wrote: >> (...) >> Possibly it's just that your ns doesn't match up to the source path >> (examples versus example). > > Nope, it's not that easy. I changed "clojure.example.hello" to > "clojure.examples.hello" in the hello.clj file, and the me

Re: A problem with compilation Clojure files

2009-09-14 Thread TPJ
On 14 Wrz, 06:01, Richard Newman wrote: > (...) > Possibly it's just that your ns doesn't match up to the source path   > (examples versus example). Nope, it's not that easy. I changed "clojure.example.hello" to "clojure.examples.hello" in the hello.clj file, and the message was still the same.

Re: A problem with compilation Clojure files

2009-09-13 Thread Richard Newman
> ./src/clojure/examples: > hello.clj ... > $ cat src/clojure/examples/hello.clj > (ns clojure.example.hello >(:gen-class)) Possibly it's just that your ns doesn't match up to the source path (examples versus example). --~--~-~--~~~---~--~~ You received th

A problem with compilation Clojure files

2009-09-13 Thread TPJ
I'm trying to compile a simple Clojure program, in order to get some Java class file. Here's my session (I'm in /home/tpj/test): $ ls -R .: classes src ./classes: ./src: clojure ./src/clojure: examples ./src/clojure/examples: hello.clj $ runclojure -cp `pwd`/classes:`pwd`/src Clojure 1.0.0-