I’m trying to compile my project in IntelliJ idea. I’m using a class in an external jar file and on compilation receiving the above error.
I understand that it’s saying the jar file was compiled with a newer Java version than that which IntelliJ is using. My question is how do I make them compatible? I have updated the Java on my Mac to 1.8 and when I run
java -version or
javac -version it confirms this.
What am I missing? (Apart from Java development experience)
Select “File” -> “Project Structure”.
Under “Project Settings” select “Project”
From there you can select the “Project SDK”.