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:

enter image description here

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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -