intellij idea - Error: java: invalid source release 1.9 : <p>I'm trying to run my JSQL parser class, but I'm getting <code>Error: java: invalid source release 1.9</code>. </p>

<p>I tried to following <a href="https://stackoverflow.com/a/42650624/7327018">this answer</a>. I changed File> Build,Execution,Deployment> Java Compiler> Project bytecode version: 1.8.  However, I can't change the Module language level and Project language level to 1.8 because there's not option for that. I still get the same error below.</p>

<p><strong>Error</strong>
<a href="https://i.stack.imgur.com/XlBuf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XlBuf.png" alt="enter image description here"></a></p>

<p><strong>Code</strong></p>

<pre><code>package cs4321.project2;

import java.io.FileReader;
import net.sf.jsqlparser.parser.CCJSqlParser;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.select.Select;

public class Parser {
    private static final String queriesFile = "resources/input/queries.sql";

    public static void main(String[] args) {
        try {
            CCJSqlParser parser = new CCJSqlParser(new FileReader(queriesFile));
            Statement statement;
            while ((statement = parser.Statement()) != null) {
                System.out.println("Read statement: " + statement);
                Select select = (Select) statement;
                System.out.println("Select body is " + select.getSelectBody());
            }
        } catch (Exception e) {
            System.err.println("Exception occurred during parsing");
            e.printStackTrace();
        }
    }
}
</code></pre>
