Search code examples
javascalaintellij-idea

IntelliJ Idea - Install JDK 1.8 on Mac


I use IntelliJ IDEA Ultimate 2017.3.3 and need to use Scala Version 2.12 for a project. However, IntelliJ says that JDK 1.8 is required for Scala Version 2.12. My problem is that I cannot select/choose JDK 1.8. Hence How can I set/install JDK to 1.8?

Any help is heavily appreciated.

Error Message

enter image description here


Solution

  • Here you can download the Java JDK 1.8. After installing it, it should appear as an option inside IntelliJ.

    UPDATE:

    Find File -> Project structure menu and go to Project Settings -> Project tab. If on Project SDK the Java version 1.8 SDK is not selected, change it and click OK.