grant codeBase
"file:<root directory
of CD>/examples/treebag.jar" { |
Here, <root
directory of CD> should be replaced with the path that
corresponds to the root directory of the CD drive into which you insert
the CD. If you already have a file named .java.policy you simply add the
new permission to that file. You can also use Sun's policytool,
which belongs to the standard Java tools, in order to create a policy
file.
grant codeBase
"file:<root directory
of CD>/examples/treebag.jar" { |
In fact, you may replace <<ALL
FILES>> with <root directory
of CD>/- (where the hyphen implies that the rights are extended recursively to all subdirectories) since only files on the CD may be accessed.
If you also want to be able to save modified components or worksheets on your hard disk from within TREEBAG but do not want to grant AllPermission, you should turn the specification of the FilePermission into "read, write" (but, of course, without restricting it to the CD).