Granting Permissions
How would I grant all permissions to all the standard java api libraries but restrict permissions to my own resources? I tried using a grant block like the following:
grant codeBase "file:${java.home}/lib/-" {
permission java.security.AllPermission;
};
but it didn't work. Can anyone help?
[321 byte] By [
JNooreza] at [2007-11-27 0:21:50]

# 1
> grant codeBase "file:${java.home}/lib/-" {
That won't work. A codebase is a list of JAR files or a list of directories that contain .class files. Not a list of directories that contain JAR files.
Try
> grant codeBase "file:${java.home}/lib/rt.jar" {
You might have to add some more JAR names to that.
ejpa at 2007-7-11 22:16:04 >
