Hi Laurent, that was indeed the problem. Thx! 2010/1/4 Laurent PETIT <laurent.pe...@gmail.com>
> Hi, > > This is a problem with the way you have created your files in your project: > > your namespace is arie.vappend > > So your file should be named vappend.clj, and be placed in > <yourProject>/src/arie/ directory ( and not <yourProject>/src/ ) > > HTH, > > -- > Laurent > > 2010/1/4 Arie van Wingerden <xapw...@gmail.com>: > > Hi, > > > > i am playing with Clojure in the latest version of the Counterclockwise > IDE > > and encounter a problem when compiling: > > 1) i right-click on source "vappend.clj" and choose "run as" "Clojure > > Repl" > > 2) then i click ctrl-alt-k to compile > > > > Then i get the following in the Repl: > > ===================================== > > Clojure 1.1.0-alpha-SNAPSHOT > > 1:1 user=> #<Namespace arie.vappend> > > 1:2 arie.vappend=> > > Code sent for evaluation: > > (clojure.core/binding [clojure.core/*compile-path* "classes"] > > (clojure.core/compile 'arie.vappend)) > > java.io.FileNotFoundException: Could not locate arie/vappend__init.class > or > > arie/vappend.clj on classpath: (repl-1:2) > > 1:3 arie.vappend=> > > ===================================== > > > > My source file "vappend.clj" : > > ===================================== > > (ns arie.vappend > > (:require [clojure.contrib.math]) > > (:refer-clojure) > > (:gen-class)) > > > > (defn vappend [x y] > > (cond (empty? x) y > > true (cons (first x) (vappend (rest x) y)))) > > > > (defn -main [] > > (println (vappend '(1 2 3 4) '(11 12 13 14))) > > (println > > (str "(expt 2 3) -> " (clojure.contrib.math/expt 2 3))) > > (println > > (str "(abs -4) -> " (clojure.contrib.math/abs -4)))) > > ===================================== > > > > My directory structure is a follows: > > ===================================== > > D:\src\clojure\dev\vappend\.classpath > > D:\src\clojure\dev\vappend\.project > > D:\src\clojure\dev\vappend\bin > > D:\src\clojure\dev\vappend\bin\vappend.clj > > D:\src\clojure\dev\vappend\classes > > D:\src\clojure\dev\vappend\classes\arie > > D:\src\clojure\dev\vappend\classes\vappend__init.class > > > D:\src\clojure\dev\vappend\classes\arie\vappend$loading__5744__auto____136.class > > D:\src\clojure\dev\vappend\classes\arie\vappend$vappend__138.class > > D:\src\clojure\dev\vappend\classes\arie\vappend$_main__141.class > > D:\src\clojure\dev\vappend\classes\arie\vappend.class > > D:\src\clojure\dev\vappend\clojure-contrib-src.jar > > D:\src\clojure\dev\vappend\clojure-contrib.jar > > D:\src\clojure\dev\vappend\clojure-src.jar > > D:\src\clojure\dev\vappend\clojure.jar > > D:\src\clojure\dev\vappend\src > > D:\src\clojure\dev\vappend\src\vappend.clj > > ===================================== > > > > Any ideas what i am doing wrong? > > > > TIA, > > Arie > > > > -- > > 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<clojure%2bunsubscr...@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<clojure%2bunsubscr...@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