0

I am new to programming and have compiler issue with Intellij idea it says :

"Error:java: invalid source release: 1.9."

Could any one help me ?

Thanks in advance.

2

2 Answers 2

1

Seems your IDE is looking for JDK 9 and you are compiling your code with different version.

Solution: Go to, Menubar --> File --> Project Stricture --> Project Settings --> Project

Check if you have any SDK(other than 1.9) installed in your system. If found, then select it.

Project Language: Select the same. click on Apply and OK. Rebuild your code and errors are gone

If no SDK found then download last version of JDK from here and point IntelliJ to it.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

It looks like you are trying to compile with a java version that is not java9, and your IDE is looking for java9 in the settings.

You will have to change the SDK version within IntelliJ - see Configuring Global, Project and Module SDKs

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.