I am trying to import a project in IntelliJ Idea 2016.1.1 using: File->Project from existing sources->choose the required pom.xml
It comes to this dialog bo
In my case, this problem was solved by setting the JDK in IntelliJ IDEA settings. Like this:
JDK
IntelliJ IDEA
Before selection correct JDK, I had the red text in this field.