[Solved] Java 8 doesn’t compile on Intellij15


Make sure that you correctly selected the JDK.

In IntelliJ you should go to: File -> Project Structure... project settings tab, and make sure the project SDK points to the location of your java 8 JDK, (something like: C:\Program Files\java\jdk1.8.0_45)

And, of course, make sure the project language level is set to 8 - Lambdas, type annotations etc.

1

solved Java 8 doesn’t compile on Intellij15