use -source 7 or higher

intellij-idea, java

Solution

the language level for a project is set in the project structure dialog: you want to make sure you set the language level to java 7, and the sdk accordingly

Problem

While trying to build a project using intelliJ Ultimate 12 I am getting these errors ``` use -source or higher to enable diamond operator use -source 7 or higher to enable multi-catch statement ``` I used the same code with same intelliJ Ultimate 12 on some other system and its working fine there. I want to know what configurations I need to set in my IDE to fix these build issues?

Original source