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.
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.
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.
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