Error:java: invalid source release: 8 in Intellij. What does it mean?

前端 未结 16 998
旧时难觅i
旧时难觅i 2020-11-27 08:55

Im trying to compile some code in I\'m using Intellij Ultimate 13.1.4, but I get the following error and I have no idea what it means:

Information:Using java         


        
16条回答
  •  轮回少年
    2020-11-27 09:47

    Check your pom.xml first (if you have one)
    Check your module's JDK dependancy. Make sure that it is 1.8
    To do this,go to Project Structure -> SDK's
    Add the path to where you have stored 1.8 (jdk1.8.0_45.jdk in my case)
    Apply the changes
    Now, go to Project Structure ->Modules
    Change the Module SDK to 1.8
    Apply the changes

    Voila! You're done

提交回复
热议问题