SVRMGR> @initplsj.sql;
Server Output ON
ORA-29532: Java call terminated by uncaught Java exception: java.security.Access
ControlException: the Permission (java.util.PropertyPermission line.separator re
ad) has not been granted by dbms_java.grant_permission to SchemaProtectionDomain
(SYS|PolicyTableProxy(SYS))
ORA-29532: Java call terminated by uncaught Java exception: java.security.Access
ControlException: the Permission (java.util.PropertyPermission oracle.aurora.rdb
ms.oracle_home read) has not been granted by dbms_java.grant_permission to Schem
aProtectionDomain(SYS|PolicyTableProxy(SYS))_pal")

note 157710.1 says that :
fix:

Grant the appropriate permission to the user in the error.

Either grant fined-grained java 2 permissions using dbms_java or grant
JAVASYSPRIV or JAVAUSERPRIV to the user.

As an example of the fine-grained approach, using the previous example, login
as SYS or SYSTEM with sql*plus and execute:

call dbms_java.grant_permission('SCOTT','java.net.SocketPermission','hostname',
'resolve');
commit;

Logout the grantee and login again.

The DBMS_JAVA.GRANT_PERMISSION procedure updates the policy table with the
new permissions. The changes are only effective once they have been committed
and the grantee has reconnected.

Does that mean grant internal or sys javasyspriv or javauserpriv??? I did that and stil didnt work