I'm running Clojure 1.3 with contrib 1.1 in IntelliJ. My program consists of a single line
(use 'clojure.contrib.prxml)
I get the following error upon running
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.RestFn.<init>(I)V
In addition to the answers saying that contrib 1.1 is incompatible with clojure 1.3
Taken from here:
Versions of clojure-contrib are matched to versions of Clojure.
If you are using Clojure 1.0, use clojure-contrib 1.0.
If you are using Clojure 1.1, use clojure-contrib 1.1.
If you are using Clojure 1.2, use clojure-contrib 1.2, or the new modular Contrib libraries.
If you are using Clojure 1.3, use the new modular Contrib libraries.
As of the date of this reply I'm not sure if there is a version of clojure.contrib.prxml
that is compatible with clojure-1.3
(Someone please correct me if I'm wrong).
So I would suggest using clojure-1.2.1
and clojure-contrib 1.2.0
.