title: JNI error has occured and I just removed and reinstalled the jdk
body: <p>I have this question before, but the problem is still not resolved. When running the code found below, the message "A JNI error has occurred, please check your installation...", etc. I have removed and reinstalled the jdk, making sure it was up to date. I reset the variable PATH but the same error still comes up. </p>
  
  <pre><code>package java;
  public class javautilArrays {
      public static void mian(String[] args) {
          char[] copyFrom = {'d', 'd', 'c', 'a', 'f', 'f', 'e', 'n', 'a', 't', 'e', 'd'};
          char[] copyTo = java.util.Arrays.copyOfRange(copyFrom, 2, 9);
          System.out.println(new String(copyTo));
      }
  }
  </code></pre>
  
  <p>In the console terminal the following message appears:</p>
  
  <pre><code>Exception in thread "main" java.lang.SecurityException: Prohibited package name: java
      at java.lang.ClassLoader.preDefineClass(Unknown Source)
      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)
  </code></pre>