playframework 2.0 - How can I set the javac compile version for Play Framework 2.0 to prevent "Unsupported major.minor version"? -



playframework 2.0 - How can I set the javac compile version for Play Framework 2.0 to prevent "Unsupported major.minor version"? -

a module using must have been compiled java 1.7, , have 1.6.

if want module compiled specific version 1.6, how can set in play! framework 2.0 can prevent "unsupported major.minor version" errors.

in play! 1.x set "java.version=1.6" in application.conf.

i assume in play! 2.x needs set somewhere sbt - where/how?

adding

javacoptions ++= seq("-source", "1.6", "-target", "1.6")

to build.sbt file worked me (to transparent, in case 1.7 build jdk 8).

playframework-2.0 sbt

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -