This section discusses which permissions should be granted to Derby (the code base derby.jar).
See "Default Policy Implementation and Policy File Syntax" at http://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html for more information about creating policy files.
permission java.io.FilePermission "${derby.system.home}/-", "read,write,delete";This allows the Derby engine complete access to the system directory and any databases contained in the system directory.