mkremins / flense

Edit trees, not text
MIT License
101 stars 3 forks source link

flense fails to build with Java version 1.6 #12

Closed aeberts closed 9 years ago

aeberts commented 10 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

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.

To verify you are using the latest version on the command line do: 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)