Hi Meikel,

On Jan 3, 9:03 pm, Meikel Brandmeyer <m...@kotka.de> wrote:
> java -cp <classpath> my.app

I can't seem to get this approach working:
I created a directory "my"
and a file "app.clj" containing:
(ns my.app)
(defn somefunc [])
  (println "somefunc!" args))
(defn main [& args]
  (somefunc))

C:\java>java -cp .;"c:/java/clojure/clojure.jar" my.app
Exception in thread "main" java.lang.NoClassDefFoundError: my/app
Caused by: java.lang.ClassNotFoundException: my.app

http://clojure.org/compilation seems to imply that this approach can
only be taken using :gen-class and pre-compiling before calling in
this way (which makes sense as my.app is not a class yet).



--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to