hi

I'm running clojure REPL ( I think ), in its lein-less version ( no lein at 
all, raw clojure.jar): 

java -cp clojure-1.6.0.jar clojure.main

Then I try to create an object of class java.util.TimerTask by: 

user=> (new java.util.TimerTask (new java.lang.Boolean 1))
CompilerException java.lang.IllegalArgumentException: No matching ctor 
found for class java.util.TimerTask, compiling:(NO_SOURCE_PATH:13:1) 


and then : 

user=> (new java.util.TimerTask)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: n 
this context, compiling:(NO_SOURCE_PATH:0:0) 

I am following doc http://clojure.org/java_interop   to no avail .

I have tried: 

user=> (import '(java.util TimerTask))
java.util.TimerTask

user=> (def temporizador (new java.util.TimerTask))
CompilerException java.lang.RuntimeException: Unable to resolve symbol: n 
this context, compiling:(NO_SOURCE_PATH:0:0)


following doc: 
http://java.ociweb.com/mark/clojure/article.html#JavaInterop


so, basically, how could I achive this?


thanks

-- 
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/d/optout.

Reply via email to