Jump to content

gradlew build Error (use -source 8 or higher to enable lambda expressions)


Idfk_man

Recommended Posts

Im working on a mod and testing it in eclipse runs fine but when I want to turn it into a jar file by running gradlew build I get the Error

error: lambda expressions are not supported in -source 1.6

McR.ex(McR.ex(enderman),3,() -> {});
                                                     ^

 (use -source 8 or higher to enable lambda expressions)

Im using 

Gradle 2.7

java version "1.8.0_351"

javac 1.8.0_351

All of my Path and JAVA_HOME environment variable are correct (set to 1.8) and Im not sure what else to check.

 

In eclipse I did have to say Change project compliance and JRE to 1.8 as this popped up on the lambda error.

Edited by Idfk_man
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.