title: Mismatch between Java version used for compilation and Java used for running
body: <p>I am having the following error when I try to run an application I built: </p>
  
  <pre><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: 
  MyApp/MainApplication has been compiled by a more recent version of the Java Runtime (class file 
  version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
  </code></pre>
  
  <p>Now.. when I check which version of Java I have installed I see that I installed the jdk-13.0.1 which is the latest version and contains also the JRE that I need. Also in my environment path variables I point to the bin of its installation folder. Can you please help me understanding what am I missing?</p>
  
  <p>Edit:
  The app is a spring boot app. I go into the target folder where the MyApp.jar (as result of the building process) is located. Once there I run the command:</p>
  
  <pre><code>Java -jar MyApp.jar
  </code></pre>
  
  <p>In my environment variables into PATH I have: <em>C:\Program Files\Java\jdk-13.0.1\bin</em></p>
  
  <p>And also the JAVA_HOME points to <em>C:\Program Files\Java\jdk-13.0.1</em></p>