yes i had tested . (point) in classpath and later added clojure/example 
which is not a good idea as the namespace is already 
clojure.examples.hello, already clojure.examples will be converted in 
clojure/examples but what must i do then? where must i put this hello.clj:

(ns clojure.examples.hello
    (:gen-class))

(defn -main
  [greetee]
  (println (str "Hello " greetee "!")))

to compile it with this command:
[mattei@moita ~]$ clojure
Clojure 1.5.1
user=> (compile 'clojure.examples.hello)  

for example in Kawa i put this in a Scheme class file:


*(module-name
        "eu.oca.kawafunct.Counter")and the class is compiled in 
**eu/oca/kawafunct* 


what will be the good CLASSPATH so ?


On Friday, October 13, 2017 at 7:23:24 PM UTC+2, Justin Smith wrote:
>
> paths have to reflect the package and be relative to the class path, so if 
> "clojure/examples" is on the classpath, and the namespace is 
> clojure.examples.hello, the file needs to be in 
> "clojure/examples/clojure/examples/hello.clj"
>
> On Fri, Oct 13, 2017 at 10:13 AM Damien Mattei <damien...@gmail.com 
> <javascript:>> wrote:
>
>> i did not have , i just follow the tutorial:
>> https://clojure.org/reference/compilation
>> i made the file but still the same problem:
>>
>> [mattei@moita ~]$ export CLASSPATH=.:./clojure/examples
>> [mattei@moita ~]$ clojure
>> Clojure 1.5.1
>> user=> (compile 'clojure.examples.hello)
>>
>> FileNotFoundException Could not locate clojure/examples/hello__init.class 
>> or clojure/examples/hello.clj on classpath:   clojure.lang.RT.load 
>> (RT.java:443)
>> user=> ^C[mattei@moita ~]$ 
>>
>> [mattei@moita ~]$ cat clojure/examples/hello.clj 
>> (ns clojure.examples.hello
>>     (:gen-class))
>>
>>
>> (defn -main
>>   [greetee]
>>   (println (str "Hello " greetee "!")))
>>
>> On Friday, October 13, 2017 at 4:48:40 PM UTC+2, James Reeves wrote:
>>
>>> Maybe this is a dumb question, but do you have a file 
>>> "clojure/examples/hello.clj" on the classpath? Since that's what the 
>>> exception is complaining about.
>>>
>> On 13 October 2017 at 15:09, Damien Mattei <damien...@gmail.com> wrote:
>>>
>> hello,
>>>>
>>>> i'm new to clojure, just installed it on a CentOS box,
>>>>
>>>> and try to compile the code below from tutorial, but it does not work, 
>>>> i searched a lot before posting, no answer... i do not want to use 
>>>> leiningen at this stage,later perheaps...
>>>>
>>>> just want to compile and run
>>>>
>>>> user=> (ns clojure.examples.hello
>>>>     (:gen-class))
>>>> nil
>>>> clojure.examples.hello=>
>>>> clojure.examples.hello=> (defn -main
>>>>   [greetee]
>>>>   (println (str "Hello " greetee "!")))
>>>> #'clojure.examples.hello/-main
>>>> clojure.examples.hello=> (compile 'clojure.examples.hello)
>>>> FileNotFoundException Could not locate 
>>>> clojure/examples/hello__init.class or clojure/examples/hello.clj on 
>>>> classpath:   clojure.lang.RT.load (RT.java:443)
>>>>
>>>> help greatly appreciated (because i'm just one step to leave Clojure 
>>>> and continue using  Kawa or Bigloo i already use or dive into ABCL , but 
>>>> Clojure has a so good reputation, i cannot imagine being sticked here by a 
>>>> simple hello world!)
>>>>
>>>> damien
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>>
>>> To post to this group, send email to clo...@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+u...@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 unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to clojure+u...@googlegroups.com.
>>>
>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> -- 
>>> James Reeves
>>> booleanknot.com
>>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> <javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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 unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to