我想解决classpath的问题。你能告诉我怎么做吗?
然后slimv显示以下内容。
user>
(+ 1 1)
2
(use '[clojure.contrib.str-utils :only (re-split)])
评估在java.io.FileNotFoundException上中止:无法在类路径上找到clojure / contrib / str_utils__init.class或clojure / contrib / str_utils.clj:
(defproject helloworld "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]]
:plugins [[lein-ritz "0.7.0"]]
)
{:user {:plugins [
[lein-ritz "0.7.0"]
]}}
答案 0 :(得分:2)
你试过clojure.string
吗?
(use '[clojure.string :only (split)])
(split "clojure8*)-6contrib&(*does^&$not*_^%exist^*#anymore" #"[^a-zA-Z]+")
=> ["clojure" "contrib" "does" "not" "exist" "anymore"]
BTW已将所有clojure.contrib
迁移到已分离的库http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go