Being a newbie for Clojure, the problem I met when trying to use its other core library –
clojure.core.reducers is the “namespace not found…”.
clojure.lang.Compiler$CompilerException: java.lang.Exception: namespace ‘clojure.core.reducers’ not found, compiling: … … … Caused by: java.lang.Exception: namespace ‘clojure.core.reducers’ not found
From the docs,
1 2 3 4 5 6 7 8 9
It seems like we need Java version that support fork/join operation. Let’s see what version do we have?
1 2 3 4
Our system show we’re using Java 6 which does not meet the requirement for
clojure.core.reducers. We need a to upgrade our JDK. Coming from non Java background, I do not even know the JRE or JDK thing. But in this case what we need is for development, so it makes sense to just download the JDK. So let’s download and install it from the official page.
Once we finished installation, the latest version is loaded default.
1 2 3 4
If you start your repl again, you will see it’s using the latest verison.
1 2 3 4 5
Ok so we are cool now: