Exception in thread "main" java.lang.Exception: Too many arguments to def

433 views
Skip to first unread message

Zonbi

unread,
Mar 8, 2009, 9:14:35 PM3/8/09
to Clojure
Exception in thread "main" java.lang.Exception: Too many arguments to
def (test.clj:26)


both
(def test-list (list (:one :two :three)))
and
(def test-list '(:one :two :three))
and changing the one/two/three into strings also gives me the error on
running. I don't get the error using the REPL. Bug?

I execute the script with 'java -cp clojure.jar clojure.lang.Script
test.clj'. Also, is there a way to compile my scripts into classes to
be used by other scripts (like my own custom utility class?)
ex.: 'javac -cp clojure.jar clojure.lang.Script test.clj'

Thanks, Timothy McDowell

Zonbi

unread,
Mar 8, 2009, 9:14:07 PM3/8/09
to Clojure
Reply all
Reply to author
Forward
0 new messages