EJS
EJS

Reputation: 1071

How to change java source in intellij

I have an intelliJ project which was working just fine untill I accidentally created a maven pom for it by right clicking on the project folder. I'm not sure exactly what the option I clicked was called (it wasn't the one I was trying to click). ctrl-z did nothing, so I deleted the pom. Now I'm stuck with a project that will only compile with java 1.5.

I tried adding the pom again with proprties set as shown in this question. I also tried going into Project settings where I can clearly see the Project language level set to SDK default (8).

Upvotes: 2

Views: 424

Answers (1)

ttarczynski
ttarczynski

Reputation: 1014

Go to File -> Project Structure -> Project and choose your desired language version in "Project Language Level" dropdown menu.

Upvotes: 1

Related Questions