clojure-contrib.jar 导入错误
命令行为“D:\Progra~1\Java\jre6\bin\java.exe -jar D:\Old\Clojure\clojure.jar D:\Old\Clojure\clojure-contrib.jar” 出现以下错误: clojure.lang.Compiler$CompilerException: clojure-contrib.jar:0: 无法解析符号: PK♥ 在此上下文中
clojure-contrib 版本是 1.1.0 如何使用库调用 clojure?
Command line is "D:\Progra~1\Java\jre6\bin\java.exe -jar D:\Old\Clojure\clojure.jar D:\Old\Clojure\clojure-contrib.jar"
Following error appears:
clojure.lang.Compiler$CompilerException: clojure-contrib.jar:0: Unable to resolve symbol: PK♥♦ in this context
clojure-contrib version is 1.1.0
How to invoke clojure with libraries right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您尝试安装 Clojure Box 吗?根据 http://en.wikibooks,这似乎是在 Windows 中安装 Clojure 的首选方式.org/wiki/Clojure_Programming/Getting_Started#Windows 我发现该页面在为其他平台安装时非常有用。
Did you try installing Clojure Box? It seems to be the prefered way to install Clojure in Windows according to http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started#Windows I've found the page very helpful when installing for other platforms.
一种想法是您将两个 jar 传递给 -jar 而不是在类路径上。您可能想要这样的东西:
我猜您的 CLI 调用导致 clojure.jar 自行启动,然后 clojure 尝试读取 clojure-contrib.jar 作为参数。
One thought is that you're passing two jars to -jar and not on the classpath. You probably want something like:
I'd guess that your CLI invocation is causing clojure.jar to be launched by itself, and then clojure is trying to read in clojure-contrib.jar as an argument.