开发者

clojure-contrib.jar import error

开发者 https://www.devze.com 2023-01-19 03:08 出处:网络
Command line is \"D:\\Progra~1\\Java\\jre6\\bin\\java.exe -jar开发者_如何学Go D:\\Old\\Clojure\\clojure.jar D:\\Old\\Clojure\\clojure-contrib.jar\"

Command line is "D:\Progra~1\Java\jre6\bin\java.exe -jar开发者_如何学Go 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?


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.


One thought is that you're passing two jars to -jar and not on the classpath. You probably want something like:

java.exe -cp d:\old\clojure-contrib.jar -jar d:\old\clojure.jar

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消