I keep getting this error even though I have a 1.6+ version (I have 1.8), and i\'m working with IntelliJ.
P.S. I have tried to update both, java jre and java jdk, di
use below in your pom to set the java version which Intellij will be used(default is 1.5)
1.8 1.8