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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -