title: java.lang.SecurityException: policy table update SYS:JAVA.LANG.RUNTIMEPERMISSION, GETCLASSLOADER
body: <p>While trying to grant java execute permissions to my schema ABC from sys, i get the below error.I tried various versions but every time i get the error, any suggestions.</p>
  
  <p>I'm using Oracle 12c Database</p>
  
  <pre><code>    SQL&gt; BEGIN
      DBMS_JAVA.GRANT_PERMISSION ('ABC', 'SYS:JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' );
      COMMIT;
      END;  2    3    4
      5  /
      BEGIN
      *
  ERROR at line 1:
  ORA-29532: Java call terminated by uncaught Java exception:
  java.lang.SecurityException: policy table update
  SYS:JAVA.LANG.RUNTIMEPERMISSION, GETCLASSLOADER
  ORA-06512: at "SYS.DBMS_JAVA", line 705
  ORA-06512: at line 2
  
  
  
  SQL&gt; call DBMS_JAVA.GRANT_PERMISSION ('ABC', 'SYS:JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' );
  call DBMS_JAVA.GRANT_PERMISSION ('ABC', 'SYS:JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' )
       *
  ERROR at line 1:
  ORA-29532: Java call terminated by uncaught Java exception:
  java.lang.SecurityException: policy table update
  SYS:JAVA.LANG.RUNTIMEPERMISSION, GETCLASSLOADER
  
  
  SQL&gt; exec DBMS_JAVA.GRANT_PERMISSION ('ABC', 'SYS:JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' );
  BEGIN DBMS_JAVA.GRANT_PERMISSION ('ABC', 'SYS:JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' ); END;
  
  *
  ERROR at line 1:
  ORA-29532: Java call terminated by uncaught Java exception:
  java.lang.SecurityException: policy table update
  SYS:JAVA.LANG.RUNTIMEPERMISSION, GETCLASSLOADER
  ORA-06512: at "SYS.DBMS_JAVA", line 705
  ORA-06512: at line 1
  
  
  SQL&gt; 
  
  
  SQL&gt; call DBMS_JAVA.GRANT_PERMISSION ('ABC', 'JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' );
  call DBMS_JAVA.GRANT_PERMISSION ('ABC', 'JAVA.LANG.RUNTIMEPERMISSION', 'GETCLASSLOADER', '' )
       *
  ERROR at line 1:
  ORA-29532: Java call terminated by uncaught Java exception:
  java.lang.ClassNotFoundException: JAVA/LANG/RUNTIMEPERMISSION 
  </code></pre>