title: Cannot run/compile java program with VSCode
body: <p>When i am hitting f5 i get this text in debug window</p>
  
  <pre><code>Error: LinkageError occurred while loading main class Hello
      java.lang.UnsupportedClassVersionError: Hello (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 56.65535
  </code></pre>
  
  <p>javac -version shows</p>
  
  <pre><code>javac 12
  </code></pre>
  
  <p>java -version</p>
  
  <pre><code>openjdk version "12" 2019-03-19
  OpenJDK Runtime Environment AdoptOpenJDK (build 12+33)
  OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12+33, mixed mode, sharing)
  </code></pre>
  
  <p>Code that i am trying to compile</p>
  
  <pre class="lang-java prettyprint-override"><code>public class Hello {
      public static void main(String[] agrs)
      {
          System.out.println("Hello world!");
      }
  }
  </code></pre>
  
  <p>PATH,JAVA_HOME and JRE_HOME are set properly.
  Debug add-on installed.
  I can compile and run the same code in InteliJ IDEA or using java (file), javac (file) and it will work fine but i don't know why it does not work on vscode.</p>