title: IntelliJ: Error:java: error: release version 5 not supported
body: <p>I'm using <strong>IntelliJ IDEA Ultimate 2019.3.1</strong>. Whenever I try to start any simple Java Maven project (may it be even a simple Hello World) I get the following error:</p>
  
  <pre><code>Error:java: error: release version 5 not supported
  </code></pre>
  
  <p>Running <code>java --version</code> by terminal I get the following output:</p>
  
  <pre><code>openjdk 11.0.5 2019-10-15
  OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.1)
  OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.1, mixed mode, sharing)
  </code></pre>
  
  <p>Running <code>javac --version</code> by terminal I get the following output:</p>
  
  <pre><code>javac 11.0.5
  </code></pre>
  
  <p>Going to the Settings of the Java Compiler ( as suggested <a href="https://stackoverflow.com/questions/52788743/intellij-error-java-release-version-10-not-supported">here</a> ) I see this:</p>
  
  <p><a href="https://i.stack.imgur.com/WJdHN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WJdHN.png" alt="Java Compiler Settings"></a></p>
  
  <p>I tried editing the "<strong>Target bytecode version</strong>" to <strong>1.8</strong> but I get the following errors:</p>
  
  <pre><code>Error:(1, 26) java: package javafx.application does not exist
  Error:(2, 20) java: package javafx.stage does not exist
  Error:(4, 27) java: cannot find symbol
    symbol: class Application
  Error:(12, 23) java: cannot find symbol
    symbol:   class Stage
    location: class Main
  Error:(7, 9) java: cannot find symbol
    symbol:   method launch(java.lang.String[])
    location: class Main
  Error:(11, 5) java: method does not override or implement a method from a supertype
  </code></pre>
  
  <p>Changing it to version <strong>1.11</strong> I get this error instead:</p>
  
  <pre><code>Error:java: Source option 5 is no longer supported. Use 6 or later.
  </code></pre>
  
  <p>What do you think is the problem? How may I solve it?</p>