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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message