Error:java: invalid flag: -release
<p>I use <strong>Java</strong> :</p>

<pre><code>Java(TM) SE Runtime Environment (build 9-ea+143) Java HotSpot(TM) 64-
Bit Server VM (build 9-ea+143, mixed mode)
</code></pre>

<p>and <strong>IntelliJ IDEA</strong>:</p>

<pre><code>IntelliJ IDEA 2016.2.5 Build #IU-162.2228.15, built on October 14,
2016
</code></pre>

<p><strong>Get error when compiling:</strong> </p>

<pre><code>Error:java: invalid flag: -release
</code></pre>

<p>Executing <code>javac -help</code> :</p>

<pre><code>--release &lt;release&gt;
        Compile for a specific VM version. Supported targets: 6, 7, 8, 9
</code></pre>

<p>So <code>javac</code> should use two hyphens with <em>release</em>, but Intellij Idea use with one.</p>

<p>Can I override <code>javac</code> options that IDEA use or fix it in some way? </p>

<p>UPD: Even <strong><em>Build, Execution, Deployment > Compiler > Java Compiler</em></strong> Additional Command Line Parameter doesn't help in this case</p>