Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Unable to compile Java8 file in IDEA12

$
0
0

I'm trying to compile some sample Java 8 code, but I'm getting this error:

 

 

java: lambda expressions are not supported in -source 1.8

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

 

 

I've set the Project SDK to 1.8 (java v3ersion "1.0.0-ea") and the Project language level to "8.0 - Lambda, type annotations etc." in the Project Structure settings.  What am I doing wrong?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>