Answering myself on this one, thanks to hiredman from #clojure.
The 1.5.1 clojure jar was somehow broken, nuking the folder and letting
leiningen re-fetch it fixed it.
On Saturday, June 1, 2013 11:11:41 AM UTC-7, Alexandr Kurilin wrote:
>
> Hello folks,
>
> I'm wondering if someone out there might have encountered this problem
> before. I'm not sure when exactly it started, perhaps 2-3 days ago, but
> ever since I have not been able to run neither "lein repl" nor "lein ring
> server[-headless]" on this machine on any of my leiningen-created clojure
> projects. The machine I'm running on is a Ubuntu 12.04 LTS box with
> java-7-openjdk.
>
> As an example, I can create a new lein project with "lein new justatest"
> and run "lein repl" in its folder right away, and I will get the following
> error:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at clojure.main.<clinit>(main.java:20)
> Caused by: java.lang.IllegalStateException: Attempting to call unbound fn:
> #'clojure.core/refer
> at clojure.lang.Var$Unbound.throwArity(Var.java:43)
> at clojure.lang.AFn.invoke(AFn.java:39)
> at clojure.lang.Var.invoke(Var.java:415)
> at clojure.lang.RT.doInit(RT.java:460)
> at clojure.lang.RT.<clinit>(RT.java:329)
> ... 1 more
> Could not find the main class: clojure.main. Program will exit.
> Exception in thread "Thread-1" clojure.lang.ExceptionInfo: Subprocess
> failed {:exit-code 1}
> at clojure.core$ex_info.invoke(core.clj:4327)
> at leiningen.core.eval$fn__1963.invoke(eval.clj:213)
> at clojure.lang.MultiFn.invoke(MultiFn.java:231)
> at leiningen.core.eval$eval_in_project.invoke(eval.clj:283)
> at leiningen.repl$start_server.invoke(repl.clj:117)
> at leiningen.repl$server$fn__4421.invoke(repl.clj:173)
> at clojure.lang.AFn.applyToHelper(AFn.java:159)
> at clojure.lang.AFn.applyTo(AFn.java:151)
> at clojure.core$apply.invoke(core.clj:617)
> at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1788)
> at clojure.lang.RestFn.invoke(RestFn.java:425)
> at clojure.lang.AFn.applyToHelper(AFn.java:163)
> at clojure.lang.RestFn.applyTo(RestFn.java:132)
> at clojure.core$apply.invoke(core.clj:621)
> at clojure.core$bound_fn_STAR_$fn__4102.doInvoke(core.clj:1810)
> at clojure.lang.RestFn.invoke(RestFn.java:397)
> at clojure.lang.AFn.run(AFn.java:24)
> at java.lang.Thread.run(Thread.java:679)
>
>
> Does this ring a bell at all? I have seen this error pop up a couple of
> times when Googling around, but no conclusive solutions that are applicable
> to my situation.
>
> Thanks!
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.