title: How to fix "A JNI error has occurred, please check your installation."
body: <p>I have written a Java program on Eclipse and I'm able to run the program. But when I transfer it to Notepad++ and run it via command  prompt. It gave me an ERROR message. Any idea on how to solve it?</p>
  <p>I have attach an image of the error.</p>
  <p><a href="https://i.stack.imgur.com/ehR3Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehR3Y.png" alt="&quot;Error Message&quot;" /></a></p>
  <pre><code>Error: A JNI error has occurred, please check your installation and try again
  Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: Assignment_2 has been compiled by a more recent version of the Java Runtime (class file version 55.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 
  at java.security.SecureClassLoader.defineClass(Unknown 
  at java.net.URLClassLoader.defineClass(Unknown 
  at java.net.URLClassLoader.access$100(Unknown 
  at java.net.URLClassLoader$1.run(Unknown 
  at java.net.URLClassLoader$1.run(Unknown 
  at java.security.AccessController.doPrivileged(Native 
  at java.net.URLClassLoader.findClass(Unknown 
  at java.lang.ClassLoader.loadClass(Unknown 
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown 
  at java.lang.ClassLoader.loadClass(Unknown 
  at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
  </code></pre>