title: Issues running beginner programs in CMD using JDK 14
body: <p>I am currently using the &quot;Java A Beginner's Guide Eighth Edition&quot; by Herbert Schildt to learn to program using Java. I have no prior programming experience and am running into an error.</p>
  <p>I have JDK 14 installed to my C drive. After a long time of having compiler issues where I could not find the file, I believe I have solved that issue. But now am encountering the following;</p>
  <pre><code>java version &quot;1.8.0_251&quot;
  Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
  Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode)
  
  C:\Users\*****&gt;javac -version
  javac 14.0.1
  
  C:\Users\*****\mywork&gt; java example
  Error: A JNI error has occurred, please check your installation and try again
  Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: example has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
  
  C:\Users\*****\mywork&gt;
  </code></pre>