Closed aeberts closed 9 years ago
Added as note for others that may be experiencing this error when building flense.
Building flense under Java 6 using lein cljsbuild once
lein cljsbuild once
fails with:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CompilerOptions : Unsupported major.minor version 51.0, compiling:(cljs/closure.clj:1:1)
Solution is to upgrade to Java 7 and add export JAVA_HOME=$(/usr/libexec/java_home) to your ~/.profile or ~/.zshrc file.
export JAVA_HOME=$(/usr/libexec/java_home)
~/.profile
~/.zshrc
To verify you are using the latest version on the command line do: java -version.
java -version
It should return something like:
java version "1.7.0_17" Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
Added as note for others that may be experiencing this error when building flense.
Building flense under Java 6 using
lein cljsbuild once
fails with:
Solution is to upgrade to Java 7 and add
export JAVA_HOME=$(/usr/libexec/java_home)
to your~/.profile
or~/.zshrc
file.To verify you are using the latest version on the command line do:
java -version
.It should return something like: