Thanks. It worked. I had to add the library path as well.

C:\myprograms\clojure>java -Djava.library.path=c:\myprograms
\jacob-1.14.3 -cp C:
\myprograms\jacob-1.14.3\jacob.jar;clojure.jar clojure.lang.Repl
Clojure
user=> (import '(com.jacob.com Dispatch ComThread))
nil
user=> (def xl (new Dispatch "Excel.Application"))
#'user/xl
user=> (Dispatch/put xl "Visible" true)
nil
user=> (Dispatch/call xl "Quit")
#<Variant null>
user=> (ComThread/Release)
nil
user=>

--~--~---------~--~----~------------~-------~--~----~
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