English 中文(简体)
是否可安装这种方式?
原标题:Is Clojure installable this way?

我下载了Clojure 1.2 https://github.com/downloads/clojure/clojure/clojure-1.2.0.zip,摘录在Library目录下,创建了CLOJURE_HOME, 添加了CLURE_HOME/script to my$PATH。

当Im试图操作cl或翻版面具时,我会发现这一错误:

Exception in thread "main" java.lang.NoClassDefFoundError: jline/ ConsoleRunner Caused by: java.lang.ClassNotFoundException: jline.ConsoleRunner at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Ok, jline. CLCSATH中的jar,因此我检查了cl和script:

CLASSPATH=src/clj:test:test-classes:classes/:script/jline-0.9.94.jar:../clojure-contrib/target/clojure-contrib-1.2.0-SNAPSHOT.jar

if [ -z "$1" ]; then 
   exec java -server jline.ConsoleRunner clojure.main 
else 
   SCRIPT=$(dirname $1) 
   export CLASSPATH=$SCRIPT/*:$SCRIPT:$CLASSPATH 
   exec java -Xmx3G -server clojure.main "$1" "$@" 
fi

我下载了jline。 根据CLOJURE_HOME/script,但Im仍然有同样的错误。

This lead me to the question:
What is the role of https://github.com/downloads/clojure/clojure/clojure-1.2.0.zip anyway?
Is it supposed to be used to install Clojure? or just to to build and get clojure.jar?
I noticed no one is talking about installing Clojure this way.
Am I missing something?

最佳回答

Clojure, 即“JVER”语言,必须处理“JV”类。 这使得安装该仪器成为一种不便和混淆。 而不是像这样的安装,而是尝试一些工具,如cl和面包。 我写了有关这一可能有用的问题的博客:http://blog.raynes.me/?p=48”rel=“nofollow”http://blog.raynes.me/?p=48

http://github.com/liebke/cljr”rel=“nofollow”

衣着社区的大多数人没有装满衣帽。 大多数人使用建筑工具和/或cl。 在你不可避免地需要依赖性管理时,把克隆装到中心位置,而且jar将在任何地方环绕。 不管怎样,让一个工具为你处理班次,会更加容易。

问题回答

衣着。 zi file file file file

对于那些没有书写工具的人,他们要么在某个部门工作,要么与最近的一个分支部门合作,从那里获得。 带有诱导的衣物,或使用上述lin、ake、cl、 counter(ec)或净豆。





相关问题
How to improve Clojures error messages

I ve been playing a bit with Clojure and so far is fairly impressed, but one thing that I keep running into is wierd error messages from Clojure. This comes in two forms: Java errors, like null ...

clojure rmi classpath problem

I am trying to use clojure to implement a "plugin" for some vendor supplied software. Here is a little background on the vendor supplied software. It expects me to implement a particular interface ...

Help translating this Java codeblock to Clojure?

I m getting my feet wet with Clojure, and trying to get used to functional programming. I ve been translating various imperative functions from other languages into their Clojure equivalents -- and ...

Is functional Clojure or imperative Groovy more readable?

OK, no cheating now. No, really, take a minute or two and try this out. What does "positions" do? Edit: simplified according to cgrand s suggestion. (defn redux [[current next] flag] [(if flag ...

taking java method names as function arg in clojure

All, I want to create a function that takes a symbol representing a java method and applies it to some object: (user=> (defn f [m] (. "foo" (m))) When I execute this, I get a result much ...

how to efficiently apply a medium-weight function in parallel

I m looking to map a modestly-expensive function onto a large lazy seq in parallel. pmap is great but i m loosing to much to context switching. I think I need to increase the size of the chunk of work ...

热门标签