- Loading...
...
Code Block | ||||
---|---|---|---|---|
| ||||
var File = java.io.File; // list contents of the current directory! for each (var f in new File(".").list()) print(f) |
...
Code Block | ||||
---|---|---|---|---|
| ||||
// give AllPermission for Main class (or any class in that directory!)
grant codeBase "file:///d:/test" {
permission java.security.AllPermission;
};
// give AllPermission to test.js script
grant codeBase "file:///d:/test/test.js" {
permission java.security.AllPermission;
}; |