# Java 2 security policy file example 1

    /* Grants permission to run Derby and access all      */
    /* databases under the Derby system home              */
    /* when it is specified by the system property             */
    /* Derby.system.home                                        */

    /* Note Derby.system.home must be an absolute pathname */

    grant codeBase "file://f:/derby/lib/derby.jar" {

      permission java.lang.RuntimePermission "createClassLoader";
      permission java.util.PropertyPermission "derby.*", "read";
      permission.java.io.FilePermission "${derby.system.home}","read";
      permission java.io.FilePermission "${derby.system.home}${/}
         -", "read,write,delete";
      permission java.util.PropertyPermission "derby.storage.jvmInstanceId",
         "write";
    };

Parent topic: Examples of Java 2 security policy files for embedded Derby
Related reference
Java 2 security policy file example 2
Java 2 security policy file example 3