try (load-file "hello.clj")

On Tuesday, March 26, 2013 9:25:43 AM UTC-7, MC Andre wrote:
>
> I tried setting *compile-path* to ".", but Clojure still can't find 
> hello.clj.
>
> Trace:
>
> $ cat hello.clj
> (ns hello
>   (:gen-class))
>
> (defn -main [& args]
>   (println "Hello World!\n"))
>
> $ lein repl
> nREPL server started on port 4902
> REPL-y 0.1.0-beta10
> Clojure 1.4.0
>     Exit: Control+D or (exit) or (quit)
> Commands: (user/help)
>     Docs: (doc function-name-here)
>           (find-doc "part-of-name-here")
>   Source: (source function-name-here)
>           (user/sourcery function-name-here)
>  Javadoc: (javadoc java-object-or-class-here)
> Examples from clojuredocs.org: [clojuredocs or cdoc]
>           (user/clojuredocs name-here)
>           (user/clojuredocs "ns-here" "name-here")
> user=> (load "hello")
> FileNotFoundException Could not locate hello__init.class or hello.clj on 
> classpath:   clojure.lang.RT.load (RT.java:432)
>
> System:
>
> * Leiningen 2.0.0-preview10
> * Clojure 1.4.0
> * Java Java 1.7.0_17 Java HotSpot(TM) Client VM
> * Windows XP
>

-- 
-- 
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/groups/opt_out.


Reply via email to