Blankman
Blankman

Reputation: 267140

How to change project SDK to use java 8?

I just updated my scala plugin and it may have messed up my intellij settings I am not sure.

My import project page looks like this:

enter image description here

I get this error when trying to open the sbt project:

enter image description here

How can I fix this?

Upvotes: 0

Views: 602

Answers (1)

Yuval Itzchakov
Yuval Itzchakov

Reputation: 149558

Go to Project Structure:

enter image description here

Under the "Project Settings" select "Project". Check if you have Java 8 installed:

enter image description here

If so, select it and press OK. Otherwise, download Java, and the press "New" and select the new Java version:

enter image description here

And then press OK.

Upvotes: 1

Related Questions