Running Derby under a security manager When running within an application or application server with a Java 2 Security Manager enabled, must be granted certain permissions to execute and access database files. Policy filesand Derby permissions Java SE Security Manager

For more information about permissions and examples of creating permission objects and granting permissions, see the Security Architecture specification at http://download.oracle.com/javase/1.4.2/docs/guide/security/PolicyFiles.html.