I download project from Repo today and try to run it for the first time and it wont Pick JDK 1.8 installed. Before you downvote stating this is Repeated question I have already checked this and this and this . I have checked everywhere on the internet but to No avail. And If Downvotiong, give explicit/very very solid reason for the same.
Here is the error message :-
error: diamond operator is not supported in -source 1.6
Set<String> result = new HashSet<>();
^
Im using Mac and Intellij Ultimate. Here is my java --version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
Here is my File > Project Structure > Modules >Sources
8. Lambdas, type annotations etc.
File > Project Structure > Project >Project SDK > javaversion "1.8.0_25"
Project language level > SDK Default(8 - Lambdas, type annotation etc.)
In my /bash_profile is have export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0_25)