奇怪的 Clojure Box - 库 (dll) 问题
我正在尝试使用 Clojure Box 将 JACOB 库与 Clojure 一起使用。
我已将其添加到我的 .emacs 中:
(setq swank-clojure-library-paths (list "c:/dev/dlls"))
C:/dev/dlls/
包含 jacob-1.14.3-x86.dll
。
我已将 .clojure
目录添加到我的 ~/
目录中,其中包含 雅各布.jar。
在 Clojure Box REPL 中,(System/getProperty "java.class.path")
产生:
"c:/Program Files/Clojure Box/clojure/clojure.jar;c:/Program Files/Clojure Box/clojure-contrib/clojure-contrib.jar;;c:/Documents and Settings/mac009/Application Data/.clojure/jacob.jar"
并且
"Settings/mac009/Application Data/.clojure/jacob.jar"
(System/getProperty "java.library.path")
产生:
"c:/dev/dlls"
如果我启动 Clojure Box 并发出 (import '(com.jacob.com Dispatch ComThread))
,REPL 只是挂起。
现在来说奇怪的部分。 如果我杀死 REPL 并执行“Alt-X slime”并且 对“创建一个额外的 inferior-lisp?(y 或 n)”回答“否”并且 发出“(import '(com.jacob.com Dispatch ComThread))”它有效! 甚至 更奇怪的是,如果我第一次发出“(import '(com.jacob.com Dispatch ComThread))" 并使 REPL 挂起。如果我 只需启动 Clojure Box 并终止/重新启动 REPL,无需先发布 “(import '(com.jacob.com Dispatch ComThread))”它只是挂起。
任何帮助是极大的赞赏。
雅各布: http://sourceforge.net/projects/jacob-project/
Clojure 框: http://clojure.bighugh.com/
I am trying to use the JACOB library with Clojure using Clojure Box.
I have added this to my .emacs:
(setq swank-clojure-library-paths (list "c:/dev/dlls"))
C:/dev/dlls/
contains the jacob-1.14.3-x86.dll
.
I have added a .clojure
dir to my ~/
dir and that contains thejacob.jar
.
At the Clojure Box REPL, (System/getProperty "java.class.path")
yields:
"c:/Program Files/Clojure Box/clojure/clojure.jar;c:/Program Files/Clojure Box/clojure-contrib/clojure-contrib.jar;;c:/Documents and Settings/mac009/Application Data/.clojure/jacob.jar"
and
"Settings/mac009/Application Data/.clojure/jacob.jar"
and (System/getProperty "java.library.path")
yields:
"c:/dev/dlls"
If I start Clojure Box and issue (import '(com.jacob.com Dispatch
, the REPL just hangs.
ComThread))
Now for the weird part. If I kill the REPL and do "Alt-X slime" and
answer no to "Create an additional inferior-lisp? (y or n)" and
issue "(import '(com.jacob.com Dispatch ComThread))" it works! Even
weirder is that this only "works" if I first issue "(import
'(com.jacob.com Dispatch ComThread))" and make the REPL hang. If I
just start Clojure Box and kill/restart the REPL without first issuing
"(import '(com.jacob.com Dispatch ComThread))" it just hangs.
Any help is greatly appreciated.
JACOB:
http://sourceforge.net/projects/jacob-project/
Clojure Box:
http://clojure.bighugh.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还需要将 swank-clojure.jar 复制到 ~/clojure。
将其放入 ~/.emacs 中:
(setq swank-clojure-library-paths '("c:\dev\dlls"))
创建目录 C:\dev\dlls。
版本:
You also need to copy swank-clojure.jar to ~/clojure.
Put this in ~/.emacs:
(setq swank-clojure-library-paths '("c:\dev\dlls"))
Create the directory C:\dev\dlls.
Versions: