I'm running with a Java Security manager, trying to give permissions to compiled Nashorn JavaScript, but cannot find the right codebase.
Some debug has shown an access control context entry like: ProtectionDomain (null <no signer certificates>) HYPERLINK "mailto:jdk.nashorn.internal.runtime.ScriptLoader@67e1a6ee"jdk.nashorn.internal.runtime.ScriptLoader@67e1a6ee <no principals> HYPERLINK "mailto:java.security.Permissions@28443842"java.security.Permissions@28443842 ( ("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.runtime") ("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.scripts") ("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.objects") ("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.runtime.linker") ("java.lang.RuntimePermission" "accessClassInPackage.jdk.nashorn.internal.runtime.arrays") ) Looks like the codebase is null - how can this be specified in a policy file? Or can the codebase be set somewhere? Thanks Richard -- http://www.oracle.com/ Richard Evans | Product Architect Phone: HYPERLINK "tel:+44%201223%20228408"+44 1223 228408 | Mobile: HYPERLINK "tel:+44%207973%20839664"+44 7973 839664 Oracle Product Development Newton House Cambrige Business Park | Cambridge | CB4 0WZ | United Kingdom ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA http://www.oracle.com/commitment Oracle is committed to developing practices and products that help protect the environment