ava.lang.ExceptionInInitializerError
at clojure.lang.Compiler.<clinit>(Compiler.java:47)
at foo.main(Main.java:75)
Caused by: java.lang.NullPointerException
at clojure.lang.RT.baseLoader(RT.java:2043)
at clojure.lang.RT.load(RT.java:417)
at clojure.lang.RT.load(RT.java:411)
at clojure.lang.RT.doInit(RT.java:447)
at clojure.lang.RT.<clinit>(RT.java:329)
... 36 more

The same code worked just fine with version 1.4. Looks like Compiler is using RT and RT is using Compiler, both statically.

Andy Fingerhut
added a comment - 13/Mar/13 12:59 AM Reopening since it came up again, and there is some more info known about the issue. I'll let someone who knows more about the issue decide whether to close it.

Tested with 1.7.0 and 1.8.0-RC3.
If I put RT.init() before, exception doesn't happen, but message "No need to call RT.init() anymore" is shown. If I remove RT.init(), exception happens. Yes, there is workaround like if I put RT.baseLoader() everything works
But this behavior looks a bit ugly - especially for those who starts with Clojure - therefore voting for this bug.

Alex Maletz
added a comment - 11/Dec/15 7:52 AM Tested with 1.7.0 and 1.8.0-RC3.
If I put RT.init() before, exception doesn't happen, but message "No need to call RT.init() anymore" is shown. If I remove RT.init(), exception happens. Yes, there is workaround like if I put RT.baseLoader() everything works
But this behavior looks a bit ugly - especially for those who starts with Clojure - therefore voting for this bug.