intellij idea - Enable lambda expression in Java 8 in Intelij -
this question has answer here:
i trying follow spark java tutorial. set things, , tried compiling project. got following error:
error:(8, 34) java: lambda expressions not supported in -source 1.5 (use -source 8 or higher enable lambda expressions)
i tried setting compiler options , default jdk, still seeing error.
here how set ide:
i happy if me.
it's not enough set project level. need set module level.
follow these steps.
right click on project------>> go open module settings---> in opening window click project in project settings----> , set project sdk
see answer https://stackoverflow.com/a/21747364/492620
Comments
Post a Comment